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-11-24 12:00:37 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-11-24 13:41:45 +0300
commit101cde38cf6d5506ea37c5f912fb4c37af50c541 (patch)
treeb2af01436928dd612b2115dcda5cd2e12c372a0a /spec/lib/gitlab/badge
parent6192ea53fad0ea04e356e5a79a5a0e5359ba46ce (diff)
Use Ci::Pipeline#latest for finding pipelines
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7333#note_18861407
Diffstat (limited to 'spec/lib/gitlab/badge')
-rw-r--r--spec/lib/gitlab/badge/build/status_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/badge/build/status_spec.rb b/spec/lib/gitlab/badge/build/status_spec.rb
index 38eebb2a176..70f03021d36 100644
--- a/spec/lib/gitlab/badge/build/status_spec.rb
+++ b/spec/lib/gitlab/badge/build/status_spec.rb
@@ -69,8 +69,8 @@ describe Gitlab::Badge::Build::Status do
new_build.success!
end
- it 'reports the compound status' do
- expect(badge.status).to eq 'failed'
+ it 'does not take outdated pipeline into account' do
+ expect(badge.status).to eq 'success'
end
end
end