spec/integration/rails/graphql/schema_spec.rb in graphql-1.9.6 vs spec/integration/rails/graphql/schema_spec.rb in graphql-1.9.7
- old
+ new
@@ -127,9 +127,27 @@
}
end
end
end
+ describe "#disable_introspection_entry_points" do
+ it "enables entry points by default" do
+ refute_empty empty_schema.introspection_system.entry_points
+ end
+
+ describe "when disable_introspection_entry_points is configured" do
+ let(:schema) do
+ GraphQL::Schema.define do
+ disable_introspection_entry_points
+ end
+ end
+
+ it "clears entry points" do
+ assert_empty schema.introspection_system.entry_points
+ end
+ end
+ end
+
describe "object_from_id" do
describe "when the hook wasn't implemented" do
it "raises not implemented" do
assert_raises(NotImplementedError) {
empty_schema.object_from_id(nil, nil)