summaryrefslogtreecommitdiff
path: root/spec/workers
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-04-06 18:55:16 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-04-06 23:46:59 +0900
commit059ec792cbd670d2b716c111b6faa50e5782ae9f (patch)
tree9d63285a27796210cea231fc519a98c6b910b075 /spec/workers
parent48e07eab5755770bff9d5ee1aca33526e4120637 (diff)
downloadgitlab-ce-059ec792cbd670d2b716c111b6faa50e5782ae9f.tar.gz
Use be_pending
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/trigger_schedule_worker_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/workers/trigger_schedule_worker_spec.rb b/spec/workers/trigger_schedule_worker_spec.rb
index c48f1406c34..0bb0bcc5c42 100644
--- a/spec/workers/trigger_schedule_worker_spec.rb
+++ b/spec/workers/trigger_schedule_worker_spec.rb
@@ -22,7 +22,7 @@ describe TriggerScheduleWorker do
end
it 'creates a new pipeline' do
- expect(Ci::Pipeline.last.status).to eq('pending')
+ expect(Ci::Pipeline.last).to be_pending
end
it 'updates next_run_at' do