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|