We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 812eff7 commit a1b2f6aCopy full SHA for a1b2f6a
spec/graphql/rake_task_spec.rb
@@ -34,7 +34,9 @@
34
end
35
dumped_json = File.read("./schema.json")
36
expected_json = JSON.pretty_generate(RakeTaskSchema.execute(GraphQL::Introspection::INTROSPECTION_QUERY))
37
- assert_equal(expected_json, dumped_json)
+
38
+ # Test that that JSON is logically equivalent, not serialized the same
39
+ assert_equal(JSON.parse(expected_json), JSON.parse(dumped_json))
40
41
dumped_idl = File.read("./schema.graphql")
42
expected_idl = rake_task_schema_defn.chomp
0 commit comments