test/integration/resolver_precedence_test.rb in rails-graphql-1.0.0.rc1 vs test/integration/resolver_precedence_test.rb in rails-graphql-1.0.0.rc2
- old
+ new
@@ -95,10 +95,10 @@
end
end
end
def test_simple_object
- object = SCHEMA::NestedTypes::Object1Object
+ object = SCHEMA.const_get(:NestedTypes)::Object1Object
field = object[:field1]
# (1) Block has higher precedence than default value
stub_handler(field, :resolve, -> { 'Ok 1' }) do
assert_result('Ok 1', 'field1.query2')