spec/graphql/language/parser_spec.rb in graphql-0.10.1 vs spec/graphql/language/parser_spec.rb in graphql-0.10.2
- old
+ new
@@ -66,10 +66,10 @@
it 'parses fields' do
assert(parser.field.parse_with_debug(%|myField { name, id }|), 'gets subselections')
assert(parser.field.parse_with_debug(%{myAlias: myField}), 'gets an alias')
assert(parser.field.parse_with_debug(%{myField(intKey: 1, floatKey: 1.1e5)}), 'gets arguments')
- assert(parser.field.parse_with_debug('myAlias: myField(stringKey: "\"my_string\"", boolKey: false, objKey: { key : true }, otherObjKey: {key: true})'), 'gets alias and arguments')
+ assert(parser.field.parse_with_debug('myAlias: myField(stringKey: "\"my_string\"", emptyStringKey: "", boolKey: false, objKey: { key : true }, otherObjKey: {key: true})'), 'gets alias and arguments')
assert(parser.field.parse_with_debug(%|myField @withFlag, @skip(if: true) { name, id }|), 'gets with directive')
end
it 'parses variable definitions' do
assert(parser.operation_variable_definition.parse_with_debug("$myVar: Boolean = true"), "it gets variables with defaults")