Sha256: 03d9af195bd71f095cccf259c0e54f3b43cd0a74bf2316c233b1bde2f53d3213
Contents?: true
Size: 998 Bytes
Versions: 2
Compression:
Stored size: 998 Bytes
Contents
require "spec_helper" describe GraphQL::Introspection::DirectiveType do let(:query_string) {%| query getDirectives { __schema { directives { name, args { name, type { name, ofType { name } } }, locations } } } |} let(:result) { DummySchema.execute(query_string) } it "shows directive info " do expected = { "data" => { "__schema" => { "directives" => [ { "name" => "skip", "args" => [ {"name"=>"if", "type"=>{"name"=>"Non-Null", "ofType"=>{"name"=>"Boolean"}}} ], "locations"=>["FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT"], }, { "name" => "include", "args" => [ {"name"=>"if", "type"=>{"name"=>"Non-Null", "ofType"=>{"name"=>"Boolean"}}} ], "locations"=>["FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT"], }, ] } }} assert_equal(expected, result) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
graphql-0.14.0 | spec/graphql/introspection/directive_type_spec.rb |
graphql-0.13.0 | spec/graphql/introspection/directive_type_spec.rb |