spec/integration/rails/graphql/schema_spec.rb in graphql-1.8.11 vs spec/integration/rails/graphql/schema_spec.rb in graphql-1.8.12
- old
+ new
@@ -16,11 +16,11 @@
it "adds handlers to the rescue middleware" do
schema_defn = schema.graphql_definition
rescue_middleware = schema_defn.middleware.first
assert_equal(1, rescue_middleware.rescue_table.length)
# normally, you'd use a real class, not a symbol:
- schema_defn.rescue_from(:error_class) { "my custom message" }
- assert_equal(2, rescue_middleware.rescue_table.length)
+ schema_defn.rescue_from(:error_class, :another_err_class) { "my custom message" }
+ assert_equal(3, rescue_middleware.rescue_table.length)
end
end
describe "#find" do
it "finds a member using a string path" do