Skip to content

Commit 43c041b

Browse files
committed
Update more tests
1 parent 8851adb commit 43c041b

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

spec/graphql/schema/resolver_spec.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -841,12 +841,6 @@ def load_input(input); end
841841
assert_equal 1, r1.extensions.size
842842
assert_equal 2, r2.extensions.size
843843
end
844-
845-
it "doesn't pass anything when there are no extensions" do
846-
r1 = Class.new(GraphQL::Schema::Resolver)
847-
assert_equal [], r1.extensions
848-
refute r1.field_options.key?(:extensions)
849-
end
850844
end
851845

852846
describe "max_page_size" do

spec/graphql/schema/subscription_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,8 @@ def in_memory_subscription_count
639639
class DirectTootSubclass < SubscriptionFieldSchema::DirectTootWasTooted
640640
end
641641
# Then check if the field options got the inherited value
642-
direct_toot_options = DirectTootSubclass.field_options
643-
assert_equal :viewer, direct_toot_options[:subscription_scope]
642+
field = GraphQL::Schema::Field.new(name: "blah", resolver_class: DirectTootSubclass)
643+
assert_equal :viewer, field.subscription_scope
644644
end
645645

646646
it "allows for setting the subscription scope value to nil" do

0 commit comments

Comments
 (0)