Skip to content

Commit

Permalink
fix: address some lint violations (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
grxy authored Feb 21, 2023
1 parent c7b987d commit dcd11e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Metrics/ParameterLists:
Max: 5
CountKeywordArgs: false
Metrics/LineLength:
Max: 100
Max: 120
Exclude:
- lib/apollo-federation/tracing/proto/apollo_pb.rb

Expand Down
2 changes: 1 addition & 1 deletion lib/apollo-federation/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def self.included(klass)
end

module CommonMethods
DEFAULT_LINK_NAMESPACE = 'federation'.freeze
DEFAULT_LINK_NAMESPACE = 'federation'

def federation(version: '1.0', link: {})
@federation_version = version
Expand Down
6 changes: 3 additions & 3 deletions spec/apollo-federation/schema_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
expect(schema.federation_version).to eq('1.0')
end

it 'returns the specified version when set' do
it 'returns the specified version when set to 2.0' do
schema = Class.new(GraphQL::Schema) do
include ApolloFederation::Schema
federation version: '2.0'
Expand All @@ -23,7 +23,7 @@
expect(schema.federation_version).to eq('2.0')
end

it 'returns the specified version when set' do
it 'returns the specified version when set to 2.3' do
schema = Class.new(GraphQL::Schema) do
include ApolloFederation::Schema
federation version: '2.3'
Expand Down Expand Up @@ -88,7 +88,7 @@
expect(schema.federation_2?).to be(true)
end

it 'returns true when the version is a string greater than 2.0' do
it 'returns true when the version is a string equal to 2.3' do
schema = Class.new(GraphQL::Schema) do
include ApolloFederation::Schema
federation version: '2.3'
Expand Down

0 comments on commit dcd11e9

Please sign in to comment.