Skip to content

Commit

Permalink
Fix new Rubocop rule about reduntant relative path dots
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfication committed Jul 21, 2023
1 parent a2420e5 commit 20bf025
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ GraphQL::RakeTask.new(
idl_outfile: "graphql/test-schema.graphql",
json_outfile: "graphql/test-schema.json",
load_schema: lambda { |_task|
require_relative "./spec/example_schema/test_schema"
require_relative "spec/example_schema/test_schema"
TestSchema
},
)
GraphQL::RakeTask.new(
idl_outfile: "graphql/test-schema-b.graphql",
json_outfile: "graphql/test-schema-b.json",
load_schema: lambda { |_task|
require_relative "./spec/example_schema/test_schema_b"
require_relative "spec/example_schema/test_schema_b"
TestSchemaB
},
)
Expand Down
2 changes: 1 addition & 1 deletion spec/example_schema/test_schema.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative "./types/query"
require_relative "types/query"

class TestSchema < GraphQL::Schema
query Types::Query
Expand Down
2 changes: 1 addition & 1 deletion spec/example_schema/test_schema_b.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative "./types/query_b"
require_relative "types/query_b"

class TestSchemaB < GraphQL::Schema
query Types::QueryB
Expand Down
2 changes: 1 addition & 1 deletion spec/example_schema/types/query.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "graphql"

require_relative "./objects/user"
require_relative "objects/user"

##
# This class is for simulating a database
Expand Down
2 changes: 1 addition & 1 deletion spec/example_schema/types/query_b.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "graphql"

require_relative "./objects/user"
require_relative "objects/user"

module Types
class QueryB < GraphQL::Schema::Object
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
minimum_coverage 100
end

require_relative "./support/graphql_integration"
require_relative "support/graphql_integration"

# See https://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
Expand Down

0 comments on commit 20bf025

Please sign in to comment.