diff options
Diffstat (limited to 'spec/graphql/types/snippets')
-rw-r--r-- | spec/graphql/types/snippets/blob_action_enum_spec.rb (renamed from spec/graphql/types/snippets/file_input_action_enum_spec.rb) | 4 | ||||
-rw-r--r-- | spec/graphql/types/snippets/blob_action_input_type_spec.rb (renamed from spec/graphql/types/snippets/file_input_type_spec.rb) | 8 | ||||
-rw-r--r-- | spec/graphql/types/snippets/blob_viewer_type_spec.rb | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/spec/graphql/types/snippets/file_input_action_enum_spec.rb b/spec/graphql/types/snippets/blob_action_enum_spec.rb index ff9b706240b..9c641bd5446 100644 --- a/spec/graphql/types/snippets/file_input_action_enum_spec.rb +++ b/spec/graphql/types/snippets/blob_action_enum_spec.rb @@ -2,8 +2,8 @@ require 'spec_helper' -RSpec.describe Types::Snippets::FileInputActionEnum do - specify { expect(described_class.graphql_name).to eq('SnippetFileInputActionEnum') } +RSpec.describe Types::Snippets::BlobActionEnum do + specify { expect(described_class.graphql_name).to eq('SnippetBlobActionEnum') } it 'exposes all file input action types' do expect(described_class.values.keys).to eq(%w[create update delete move]) diff --git a/spec/graphql/types/snippets/file_input_type_spec.rb b/spec/graphql/types/snippets/blob_action_input_type_spec.rb index c7d4909b542..5d6bd81fb77 100644 --- a/spec/graphql/types/snippets/file_input_type_spec.rb +++ b/spec/graphql/types/snippets/blob_action_input_type_spec.rb @@ -2,14 +2,14 @@ require 'spec_helper' -RSpec.describe Types::Snippets::FileInputType do - specify { expect(described_class.graphql_name).to eq('SnippetFileInputType') } +RSpec.describe Types::Snippets::BlobActionInputType do + specify { expect(described_class.graphql_name).to eq('SnippetBlobActionInputType') } it 'has the correct arguments' do expect(described_class.arguments.keys).to match_array(%w[filePath action previousPath content]) end - it 'sets the type of action argument to FileInputActionEnum' do - expect(described_class.arguments['action'].type.of_type).to eq(Types::Snippets::FileInputActionEnum) + it 'sets the type of action argument to BlobActionEnum' do + expect(described_class.arguments['action'].type.of_type).to eq(Types::Snippets::BlobActionEnum) end end diff --git a/spec/graphql/types/snippets/blob_viewer_type_spec.rb b/spec/graphql/types/snippets/blob_viewer_type_spec.rb index 8210eb9a95c..295df992c67 100644 --- a/spec/graphql/types/snippets/blob_viewer_type_spec.rb +++ b/spec/graphql/types/snippets/blob_viewer_type_spec.rb @@ -44,7 +44,7 @@ RSpec.describe GitlabSchema.types['SnippetBlobViewer'] do let(:query) do %( query { - snippets(ids:"#{snippet.to_global_id}"){ + snippets(ids: "#{snippet.to_global_id}") { edges { node { blob { @@ -70,7 +70,7 @@ RSpec.describe GitlabSchema.types['SnippetBlobViewer'] do let(:query) do %( query { - snippets(ids:"#{snippet.to_global_id}"){ + snippets(ids: "#{snippet.to_global_id}") { edges { node { blob { |