Commit 07df96fd authored by Mark Chao's avatar Mark Chao Committed by Stan Hu

Remove unused key param

parent f3ba00e6
...@@ -28,7 +28,7 @@ RSpec.describe GitlabSchema.types['CurrentLicense'], :enable_admin_mode do ...@@ -28,7 +28,7 @@ RSpec.describe GitlabSchema.types['CurrentLicense'], :enable_admin_mode do
it { expect(described_class.graphql_name).to eq('CurrentLicense') } it { expect(described_class.graphql_name).to eq('CurrentLicense') }
it { expect(described_class).to include_graphql_fields(*fields) } it { expect(described_class).to include_graphql_fields(*fields) }
include_examples 'license type fields', %w[data currentLicense] include_examples 'license type fields'
describe "#users_over_license_count" do describe "#users_over_license_count" do
def query(field_name) def query(field_name)
......
...@@ -32,5 +32,5 @@ RSpec.describe GitlabSchema.types['LicenseHistoryEntry'], :enable_admin_mode do ...@@ -32,5 +32,5 @@ RSpec.describe GitlabSchema.types['LicenseHistoryEntry'], :enable_admin_mode do
it { expect(described_class.graphql_name).to eq('LicenseHistoryEntry') } it { expect(described_class.graphql_name).to eq('LicenseHistoryEntry') }
include_examples 'license type fields', ['data', 'licenseHistoryEntries', 'nodes', -1] include_examples 'license type fields'
end end
# frozen_string_literal: true # frozen_string_literal: true
RSpec.shared_examples_for 'license type fields' do |keys| RSpec.shared_examples_for 'license type fields' do
include GraphqlHelpers include GraphqlHelpers
context 'with license type fields' do context 'with license type fields' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment