diff options
Diffstat (limited to 'spec/lib/ci/charts_spec.rb')
-rw-r--r-- | spec/lib/ci/charts_spec.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/lib/ci/charts_spec.rb b/spec/lib/ci/charts_spec.rb deleted file mode 100644 index 51cbfd2a848..00000000000 --- a/spec/lib/ci/charts_spec.rb +++ /dev/null @@ -1,24 +0,0 @@ -require 'spec_helper' - -describe Ci::Charts, lib: true do - context "pipeline_times" do - let(:project) { create(:empty_project) } - let(:chart) { Ci::Charts::PipelineTime.new(project) } - - subject { chart.pipeline_times } - - before do - create(:ci_empty_pipeline, project: project, duration: 120) - end - - it 'returns pipeline times in minutes' do - is_expected.to contain_exactly(2) - end - - it 'handles nil pipeline times' do - create(:ci_empty_pipeline, project: project, duration: nil) - - is_expected.to contain_exactly(2, 0) - end - end -end |