Skip to content

Commit 6aa0a94

Browse files
rmosolgovaclavbohac
authored andcommitted
more debug info
1 parent bce6080 commit 6aa0a94

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spec/graphql/schema/object_spec.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,13 @@ def self.type_error(err, ctx)
411411
assert type_defn_shapes_a.find { |sh| sh == default_connection_shape }, "There's a match for default_connection_shape"
412412
assert type_defn_shapes_a.find { |sh| sh == default_mutation_payload_shape }, "There's a match for default_mutation_payload_shape"
413413

414-
assert_equal [], type_defn_shapes_a - expected_default_shapes, "There aren't any other shape profiles"
414+
extra_shapes = type_defn_shapes_a - expected_default_shapes
415+
extra_shapes_by_name = {}
416+
extra_shapes.each do |shape|
417+
name = example_shapes_by_name.key(shape)
418+
extra_shapes_by_name[name] = shape
419+
end
420+
assert_equal({}, extra_shapes_by_name, "There aren't any extras shape profiles")
415421
end
416422

417423
describe "overriding wrap" do

0 commit comments

Comments
 (0)