Skip to content

Commit

Permalink
Add test for requiring graphql first
Browse files Browse the repository at this point in the history
  • Loading branch information
rmosolgo committed Dec 9, 2024
1 parent 83572b0 commit 724dac2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/graphql/autoload_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def self.eager_load!
require_path = file.sub("lib/", "").sub(".rb", "")
stderr_and_stdout, _status = Open3.capture2e("ruby -Ilib -e 'require \"#{require_path}\"'")
assert_equal "", stderr_and_stdout, "It loads #{require_path.inspect} in isolation"
stderr_and_stdout, _status = Open3.capture2e("ruby -Ilib -e 'require \"graphql\"; require \"#{require_path}\"'")
assert_equal "", stderr_and_stdout, "It loads #{require_path.inspect} in isolation after loading graphql"
end
end
end
Expand Down

0 comments on commit 724dac2

Please sign in to comment.