diff options
| author | Lin Jen-Shin <godfat@godfat.org> | 2016-08-15 21:51:13 +0800 |
|---|---|---|
| committer | Lin Jen-Shin <godfat@godfat.org> | 2016-08-15 21:51:13 +0800 |
| commit | 74c5f82fb034f3d25f4c32fb0fac93beb6b4623f (patch) | |
| tree | eb3dd6e0f104676a415f7d666e12690c6ed94d85 /spec/models/ci | |
| parent | ce641335167230d288fbb2ec277548acbaff9dd7 (diff) | |
| download | gitlab-ce-74c5f82fb034f3d25f4c32fb0fac93beb6b4623f.tar.gz | |
pipeline duration no longer depends on builds
Diffstat (limited to 'spec/models/ci')
| -rw-r--r-- | spec/models/ci/pipeline_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb index 67bd23a1ccb..9478b011a71 100644 --- a/spec/models/ci/pipeline_spec.rb +++ b/spec/models/ci/pipeline_spec.rb @@ -124,8 +124,7 @@ describe Ci::Pipeline, models: true do describe 'state machine' do let(:current) { Time.now.change(usec: 0) } - let(:build) { create :ci_build, name: 'build1', pipeline: pipeline, started_at: current - 60, finished_at: current } - let(:build2) { create :ci_build, name: 'build2', pipeline: pipeline, started_at: current - 60, finished_at: current } + let(:build) { create :ci_build, name: 'build1', pipeline: pipeline } describe '#duration' do before do |
