diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-11-06 13:15:38 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-11-06 13:15:38 +0000 |
commit | 6e9179ab461c0100f3e870c655fa566a782e0f9a (patch) | |
tree | 946e628ccb580eff671ae7b9b4cd34c0aa665d27 /spec/models | |
parent | 1cf4aa023978cfb28e73058e66e7d16d864e6f5a (diff) | |
parent | 202df2fbbcbcaaf4e4136863256dc068d045178b (diff) | |
download | gitlab-ce-6e9179ab461c0100f3e870c655fa566a782e0f9a.tar.gz |
Merge branch 'support-project-security-dashboard' into 'master'
Backport support project security dashboard changes
See merge request gitlab-org/gitlab-ce!22824
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/ci/pipeline_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb index 0f58c06864e..9e6146b8a44 100644 --- a/spec/models/ci/pipeline_spec.rb +++ b/spec/models/ci/pipeline_spec.rb @@ -1043,6 +1043,11 @@ describe Ci::Pipeline, :mailer do expect(described_class.newest_first.pluck(:status)) .to eq(%w[skipped failed success canceled]) end + + it 'searches limited backlog' do + expect(described_class.newest_first(limit: 1).pluck(:status)) + .to eq(%w[skipped]) + end end describe '.latest_status' do |