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:
authorLin Jen-Shin <godfat@godfat.org>2016-12-15 13:52:36 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-12-15 13:52:36 +0300
commitd9000184e5e8a63e0c24fe264e864fc27f6515c4 (patch)
treef4400e953ff24f1ba2a3e4b2632f461e8444e50f /spec/models/ci
parentb4a7e7cfbf2a79cf6ecdb8b251ad41c09a40e5bd (diff)
Add explicit status test, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7333#note_20058993 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7333#note_20059060 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7333#note_20059357
Diffstat (limited to 'spec/models/ci')
-rw-r--r--spec/models/ci/pipeline_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb
index d06c30a891c..52dd41065e9 100644
--- a/spec/models/ci/pipeline_spec.rb
+++ b/spec/models/ci/pipeline_spec.rb
@@ -426,6 +426,7 @@ describe Ci::Pipeline, models: true do
it 'returns the latest status for the same ref and different sha' do
expect(latest_status).to eq(described_class.latest.status)
+ expect(latest_status).to eq('failed')
end
end
@@ -434,6 +435,7 @@ describe Ci::Pipeline, models: true do
it 'returns the latest status for ref and different sha' do
expect(latest_status).to eq(described_class.latest_status('ref'))
+ expect(latest_status).to eq('failed')
end
end
end