diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
commit | a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch) | |
tree | fb69158581673816a8cd895f9d352dcb3c678b1e /spec/graphql/types/mutation_type_spec.rb | |
parent | d16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff) |
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'spec/graphql/types/mutation_type_spec.rb')
-rw-r--r-- | spec/graphql/types/mutation_type_spec.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/spec/graphql/types/mutation_type_spec.rb b/spec/graphql/types/mutation_type_spec.rb index e4144e4fa97..c1a5c93c85b 100644 --- a/spec/graphql/types/mutation_type_spec.rb +++ b/spec/graphql/types/mutation_type_spec.rb @@ -15,28 +15,6 @@ RSpec.describe Types::MutationType do expect(described_class).to have_graphql_mutation(Mutations::MergeRequests::SetDraft) end - describe 'deprecated and aliased mutations' do - using RSpec::Parameterized::TableSyntax - - where(:alias_name, :canonical_name) do - 'AddAwardEmoji' | 'AwardEmojiAdd' - 'RemoveAwardEmoji' | 'AwardEmojiRemove' - 'ToggleAwardEmoji' | 'AwardEmojiToggle' - end - - with_them do - let(:alias_field) { get_field(alias_name) } - let(:canonical_field) { get_field(canonical_name) } - - it { expect(alias_field).to be_present } - it { expect(canonical_field).to be_present } - it { expect(alias_field.deprecation_reason).to be_present } - it { expect(canonical_field.deprecation_reason).not_to be_present } - it { expect(alias_field.resolver.fields).to eq(canonical_field.resolver.fields) } - it { expect(alias_field.resolver.arguments).to eq(canonical_field.resolver.arguments) } - end - end - def get_field(name) described_class.fields[GraphqlHelpers.fieldnamerize(name)] end |