spec/graphql/schema/printer_spec.rb in graphql-0.17.2 vs spec/graphql/schema/printer_spec.rb in graphql-0.18.0
- old
+ new
@@ -64,10 +64,14 @@
}
describe ".print_introspection_schema" do
it "returns the schema as a string for the introspection types" do
expected = <<SCHEMA
+schema {
+ query: Query
+}
+
type __Directive {
name: String!
description: String
args: [__InputValue!]!
locations: [__DirectiveLocation!]!
@@ -145,9 +149,13 @@
end
describe ".print_schema" do
it "returns the schema as a string for the defined types" do
expected = <<SCHEMA
+schema {
+ query: Query
+}
+
enum Choice {
FOO
BAR
}