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.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/spec/lib/gitlab/graphql/queries_spec.rb b/spec/lib/gitlab/graphql/queries_spec.rb
index ad1aaac712e..2c2ec821385 100644
--- a/spec/lib/gitlab/graphql/queries_spec.rb
+++ b/spec/lib/gitlab/graphql/queries_spec.rb
@@ -85,11 +85,15 @@ RSpec.describe Gitlab::Graphql::Queries do
describe '.all' do
it 'is the combination of finding queries in CE and EE' do
expect(described_class)
- .to receive(:find).with(Rails.root / 'app/assets/javascripts').and_return([:ce])
+ .to receive(:find).with(Rails.root / 'app/assets/javascripts').and_return([:ce_assets])
expect(described_class)
- .to receive(:find).with(Rails.root / 'ee/app/assets/javascripts').and_return([:ee])
+ .to receive(:find).with(Rails.root / 'ee/app/assets/javascripts').and_return([:ee_assets])
+ expect(described_class)
+ .to receive(:find).with(Rails.root / 'app/graphql/queries').and_return([:ce_gql])
+ expect(described_class)
+ .to receive(:find).with(Rails.root / 'ee/app/graphql/queries').and_return([:ee_gql])
- expect(described_class.all).to eq([:ce, :ee])
+ expect(described_class.all).to contain_exactly(:ce_assets, :ee_assets, :ce_gql, :ee_gql)
end
end