diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-11-22 20:55:10 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-11-22 20:55:10 +0300 |
commit | 56112b0ae0f6a43335a2fbbd1194c14776377ca0 (patch) | |
tree | ca290c345af40fa5fb91a94baa2ce7632aa34c54 /spec/workers/pipeline_schedule_worker_spec.rb | |
parent | 9d372d0da6719a10c41a7021356961e00f9dd23e (diff) |
Fix testing order
Diffstat (limited to 'spec/workers/pipeline_schedule_worker_spec.rb')
-rw-r--r-- | spec/workers/pipeline_schedule_worker_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/workers/pipeline_schedule_worker_spec.rb b/spec/workers/pipeline_schedule_worker_spec.rb index 88b740b7a12..e7a4ac0f3d6 100644 --- a/spec/workers/pipeline_schedule_worker_spec.rb +++ b/spec/workers/pipeline_schedule_worker_spec.rb @@ -25,9 +25,9 @@ describe PipelineScheduleWorker do shared_examples 'successful scheduling' do it 'creates a new pipeline' do expect { subject }.to change { project.pipelines.count }.by(1) + expect(Ci::Pipeline.last).to be_schedule pipeline_schedule.reload - expect(Ci::Pipeline.last).to be_schedule expect(pipeline_schedule.next_run_at).to be > Time.now expect(pipeline_schedule).to eq(project.pipelines.last.pipeline_schedule) expect(pipeline_schedule).to be_active |