Avoid using random in the tests, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7333#note_18860042
This commit is contained in:
parent
6264b2dfc2
commit
3a99e36e44
|
@ -208,11 +208,11 @@ eos
|
|||
describe '#status' do
|
||||
context 'without arguments' do
|
||||
before do
|
||||
5.times do
|
||||
%w[success failed created pending].each do |status|
|
||||
create(:ci_empty_pipeline,
|
||||
project: project,
|
||||
sha: commit.sha,
|
||||
status: Ci::Pipeline.all_state_names.sample)
|
||||
status: status)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue