Skip to content

Commit e215883

Browse files
committed
Add a failing test for transitive interfaces and .possible_types
1 parent e65f537 commit e215883

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/graphql/schema/interface_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,11 @@ def thing
359359

360360
assert_equal ["Named", "Node", "Timestamped"], interfaces_names
361361
end
362+
363+
it "doesn't return interfaces as possible types" do
364+
pts = TransitiveInterfaceSchema.possible_types(TransitiveInterfaceSchema::Node)
365+
assert_equal ["Thing"], pts.map(&:graphql_name)
366+
end
362367
end
363368

364369
describe "supplying a fallback_value to a field" do

0 commit comments

Comments
 (0)