diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-06-26 12:20:24 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-06-26 12:20:24 +0300 |
commit | 55f4869a39ffb62c765e0014c36b81261c7c78a9 (patch) | |
tree | 5e480aac3f6aaf7acc257e4dbd6141b3ffa654b9 /spec/lib | |
parent | 5c8e8662c60a7b5ad2ed6ccb95d67ad9dcebb1e6 (diff) | |
parent | 7ccc6322e31de2fde15ffbbf8d74f19c414f224c (diff) |
Merge branch 'zj-faster-charts-page' into 'master'
Improve performance for pipeline charts
Closes #32407
See merge request !12378
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/ci/charts_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/lib/ci/charts_spec.rb b/spec/lib/ci/charts_spec.rb index fb6cc398307..51cbfd2a848 100644 --- a/spec/lib/ci/charts_spec.rb +++ b/spec/lib/ci/charts_spec.rb @@ -1,21 +1,21 @@ require 'spec_helper' describe Ci::Charts, lib: true do - context "build_times" do + context "pipeline_times" do let(:project) { create(:empty_project) } - let(:chart) { Ci::Charts::BuildTime.new(project) } + let(:chart) { Ci::Charts::PipelineTime.new(project) } - subject { chart.build_times } + subject { chart.pipeline_times } before do create(:ci_empty_pipeline, project: project, duration: 120) end - it 'returns build times in minutes' do + it 'returns pipeline times in minutes' do is_expected.to contain_exactly(2) end - it 'handles nil build times' do + it 'handles nil pipeline times' do create(:ci_empty_pipeline, project: project, duration: nil) is_expected.to contain_exactly(2, 0) |