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/usage_data_queries_spec.rb')
-rw-r--r--spec/lib/gitlab/usage_data_queries_spec.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/spec/lib/gitlab/usage_data_queries_spec.rb b/spec/lib/gitlab/usage_data_queries_spec.rb
index 3ec7bf33623..6d30947167c 100644
--- a/spec/lib/gitlab/usage_data_queries_spec.rb
+++ b/spec/lib/gitlab/usage_data_queries_spec.rb
@@ -72,17 +72,18 @@ RSpec.describe Gitlab::UsageDataQueries do
describe '.add' do
it 'returns the combined raw SQL with an inner query' do
- expect(described_class.add('SELECT COUNT("users"."id") FROM "users"',
- 'SELECT COUNT("issues"."id") FROM "issues"'))
- .to eq('SELECT (SELECT COUNT("users"."id") FROM "users") + (SELECT COUNT("issues"."id") FROM "issues")')
+ expect(described_class.add(
+ 'SELECT COUNT("users"."id") FROM "users"',
+ 'SELECT COUNT("issues"."id") FROM "issues"'
+ )).to eq('SELECT (SELECT COUNT("users"."id") FROM "users") + (SELECT COUNT("issues"."id") FROM "issues")')
end
end
describe '.histogram' do
it 'returns the histogram sql' do
- expect(described_class.histogram(AlertManagement::HttpIntegration.active,
- :project_id, buckets: 1..2, bucket_size: 101))
- .to match(/^WITH "count_cte" AS MATERIALIZED/)
+ expect(described_class.histogram(
+ AlertManagement::HttpIntegration.active, :project_id, buckets: 1..2, bucket_size: 101
+ )).to match(/^WITH "count_cte" AS MATERIALIZED/)
end
end