You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it"TODO: raises when directive argument default values are invalid"
460
+
expected_message="`@localize.lang` has an invalid default value: `\"ZH\"` isn't accepted by `Language`; update the default value or the argument type."
461
+
assert_equalexpected_message,err.message
462
+
end
421
463
422
464
it"raises when parsing a schema from a string"do
423
465
schema_str=<<-GRAPHQL
@@ -431,6 +473,42 @@ class InvalidLazyArgumentObject < GraphQL::Schema::Object
431
473
end
432
474
expected_message="`Query.f1.arg1` has an invalid default value: `nil` isn't accepted by `Int!`; update the default value or the argument type."
433
475
assert_equalexpected_message,err.message
476
+
477
+
directive_schema_str=<<-GRAPHQL
478
+
enum Language {
479
+
EN
480
+
JA
481
+
}
482
+
directive @localize(lang: Language = "ZH") on FIELD
expected_message="`@localize.lang` has an invalid default value: `\"ZH\"` isn't accepted by `Language`; update the default value or the argument type."
0 commit comments