From 059ec792cbd670d2b716c111b6faa50e5782ae9f Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Thu, 6 Apr 2017 18:55:16 +0900 Subject: Use be_pending --- spec/workers/trigger_schedule_worker_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/workers') 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 -- cgit v1.2.1