Avoid using random in the tests, feedback:

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7333#note_18860042
This commit is contained in:
Lin Jen-Shin 2016-11-24 16:27:57 +08:00
parent 6264b2dfc2
commit 3a99e36e44
1 changed files with 2 additions and 2 deletions

View File

@ -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