@@ -493,18 +493,18 @@ def self.resolve_type(type, obj, ctx)
493493 it "introspects in GraphQL language with enums" do
494494 class InputDefaultSchema < GraphQL ::Schema
495495 class Letter < GraphQL ::Schema ::Enum
496- value "A"
497- value "B"
496+ value "A" , value : 1
497+ value "B" , value : 2
498498 end
499499
500500 class InputObj < GraphQL ::Schema ::InputObject
501- argument :a , Letter , required : false
502- argument :b , Letter , required : false
501+ argument :arg_a , Letter , required : false
502+ argument :arg_b , Letter , required : false
503503 end
504504
505505 class Query < GraphQL ::Schema ::Object
506506 field :i , Int , null : true do
507- argument :arg , InputObj , required : false , default_value : { a : "A" , b : "B" }
507+ argument :arg , InputObj , required : false , default_value : { arg_a : 1 , arg_b : 2 }
508508 end
509509 end
510510
@@ -524,7 +524,7 @@ class Query < GraphQL::Schema::Object
524524 }
525525 }
526526 "
527- assert_equal "{a : A, b : B}" , res [ "data" ] [ "__type" ] [ "fields" ] . first [ "args" ] . first [ "defaultValue" ]
527+ assert_equal "{argA : A, argB : B}" , res [ "data" ] [ "__type" ] [ "fields" ] . first [ "args" ] . first [ "defaultValue" ]
528528 end
529529 end
530530
0 commit comments