diff options
author | Darby Frey <dfrey@gitlab.com> | 2019-02-07 13:33:26 -0600 |
---|---|---|
committer | Darby Frey <dfrey@gitlab.com> | 2019-02-07 13:33:26 -0600 |
commit | 37e9ada0ae27d675d199265149a3a78f67ebeeba (patch) | |
tree | 0a6869161c9b6664fb2aac47f2d084ca935811dc | |
parent | b26fb6fde503a4704df1677349b62de1db4cb3c6 (diff) | |
download | gitlab-ce-release_usage_metrics.tar.gz |
code formattingrelease_usage_metrics
-rw-r--r-- | spec/lib/gitlab/usage_data_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/usage_data_spec.rb b/spec/lib/gitlab/usage_data_spec.rb index 715ee4afb28..a009c62ecb4 100644 --- a/spec/lib/gitlab/usage_data_spec.rb +++ b/spec/lib/gitlab/usage_data_spec.rb @@ -248,8 +248,8 @@ describe Gitlab::UsageData do end describe '#deployed_pages_projects' do - let(:pipeline1){ create(:ci_pipeline) } - let(:pipeline2){ create(:ci_pipeline) } + let(:pipeline1) { create(:ci_pipeline) } + let(:pipeline2) { create(:ci_pipeline) } it 'excludes builds that are not of name pages:deploy' do create(:ci_build, name: 'pages:deploy', pipeline: pipeline1) @@ -259,7 +259,7 @@ describe Gitlab::UsageData do expect(count_data[:deployed_pages_projects]).to be(1) end - + it 'returns the distinct count when multiple builds exist for the same project' do create(:ci_build, name: 'pages:deploy', pipeline: pipeline1) create(:ci_build, name: 'pages:deploy', pipeline: pipeline1) |