Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-04-07 19:05:39 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2017-04-07 19:05:39 +0300
commit3ea4a13925d7989288101ba40b25b02fa49ae23c (patch)
tree88cd62d58f2895333b178bfd7a38f9da47069d0e /spec/workers/trigger_schedule_worker_spec.rb
parent0872b854cb4861351893ad78c4d4a86c61a2eccf (diff)
Yet, another errors
Diffstat (limited to 'spec/workers/trigger_schedule_worker_spec.rb')
-rw-r--r--spec/workers/trigger_schedule_worker_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/workers/trigger_schedule_worker_spec.rb b/spec/workers/trigger_schedule_worker_spec.rb
index fdc638d9070..b34ef3175bf 100644
--- a/spec/workers/trigger_schedule_worker_spec.rb
+++ b/spec/workers/trigger_schedule_worker_spec.rb
@@ -57,7 +57,10 @@ describe TriggerScheduleWorker do
end
context 'when next_run_at is nil' do
- let!(:trigger_schedule) { create(:ci_trigger_schedule, :nightly, next_run_at: nil) }
+ before
+ schedule = create(:ci_trigger_schedule, :nightly)
+ schedule.update_column(:next_run_at, nil)
+ end
it 'does not create a new pipeline' do
expect { worker.perform }.not_to change { Ci::Pipeline.count }