Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/graphql/queries_spec.rb')
-rw-r--r--spec/lib/gitlab/graphql/queries_spec.rb17
1 files changed, 16 insertions, 1 deletions
diff --git a/spec/lib/gitlab/graphql/queries_spec.rb b/spec/lib/gitlab/graphql/queries_spec.rb
index a140a283c1b..a1cd2cdb2de 100644
--- a/spec/lib/gitlab/graphql/queries_spec.rb
+++ b/spec/lib/gitlab/graphql/queries_spec.rb
@@ -1,5 +1,6 @@
# frozen_string_literal: true
+require 'spec_helper'
require 'fast_spec_helper'
require "test_prof/recipes/rspec/let_it_be"
@@ -124,6 +125,18 @@ RSpec.describe Gitlab::Graphql::Queries do
expect(described_class.find(path)).to be_empty
end
+ it 'ignores customer.query.graphql' do
+ path = root / 'plans.customer.query.graphql'
+
+ expect(described_class.find(path)).to be_empty
+ end
+
+ it 'ignores customer.mutation.graphql' do
+ path = root / 'plans.customer.mutation.graphql'
+
+ expect(described_class.find(path)).to be_empty
+ end
+
it 'finds all query definitions under a root directory' do
found = described_class.find(root)
@@ -137,7 +150,9 @@ RSpec.describe Gitlab::Graphql::Queries do
expect(found).not_to include(
definition_of(root / 'typedefs.graphql'),
- definition_of(root / 'author.fragment.graphql')
+ definition_of(root / 'author.fragment.graphql'),
+ definition_of(root / 'plans.customer.query.graphql'),
+ definition_of(root / 'plans.customer.mutation.graphql')
)
end
end