From f3f0e5f61f65c4a5611d58b8d9daa8bbdef28534 Mon Sep 17 00:00:00 2001 From: Peter Gundel Date: Fri, 21 Jul 2023 15:41:16 +0200 Subject: [PATCH] Fix new Rubocop rule about reduntant relative path dots --- Rakefile | 4 ++-- spec/example_schema/test_schema.rb | 2 +- spec/example_schema/test_schema_b.rb | 2 +- spec/example_schema/types/query.rb | 2 +- spec/example_schema/types/query_b.rb | 2 +- spec/spec_helper.rb | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Rakefile b/Rakefile index 4c2e815..1069833 100644 --- a/Rakefile +++ b/Rakefile @@ -5,7 +5,7 @@ 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 }, ) @@ -13,7 +13,7 @@ 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 }, ) diff --git a/spec/example_schema/test_schema.rb b/spec/example_schema/test_schema.rb index b7b176b..4689810 100644 --- a/spec/example_schema/test_schema.rb +++ b/spec/example_schema/test_schema.rb @@ -1,4 +1,4 @@ -require_relative "./types/query" +require_relative "types/query" class TestSchema < GraphQL::Schema query Types::Query diff --git a/spec/example_schema/test_schema_b.rb b/spec/example_schema/test_schema_b.rb index 712cfcd..261deb5 100644 --- a/spec/example_schema/test_schema_b.rb +++ b/spec/example_schema/test_schema_b.rb @@ -1,4 +1,4 @@ -require_relative "./types/query_b" +require_relative "types/query_b" class TestSchemaB < GraphQL::Schema query Types::QueryB diff --git a/spec/example_schema/types/query.rb b/spec/example_schema/types/query.rb index 265ee15..c1cbc99 100644 --- a/spec/example_schema/types/query.rb +++ b/spec/example_schema/types/query.rb @@ -1,6 +1,6 @@ require "graphql" -require_relative "./objects/user" +require_relative "objects/user" ## # This class is for simulating a database diff --git a/spec/example_schema/types/query_b.rb b/spec/example_schema/types/query_b.rb index 5b7c537..c59b742 100644 --- a/spec/example_schema/types/query_b.rb +++ b/spec/example_schema/types/query_b.rb @@ -1,6 +1,6 @@ require "graphql" -require_relative "./objects/user" +require_relative "objects/user" module Types class QueryB < GraphQL::Schema::Object diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index ee0aae1..e83152d 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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|