summaryrefslogtreecommitdiff
path: root/spec/workers
diff options
context:
space:
mode:
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/trigger_schedule_worker_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/trigger_schedule_worker_spec.rb b/spec/workers/trigger_schedule_worker_spec.rb
index 4df5731709b..75a98e42ac5 100644
--- a/spec/workers/trigger_schedule_worker_spec.rb
+++ b/spec/workers/trigger_schedule_worker_spec.rb
@@ -8,7 +8,7 @@ describe TriggerScheduleWorker do
end
context 'when there is a scheduled trigger within next_run_at' do
- let!(:trigger_schedule) { create(:ci_trigger_schedule, :cron_nightly_build, :force_triggable) }
+ let!(:trigger_schedule) { create(:ci_trigger_schedule, :nightly, :force_triggable) }
before do
worker.perform
@@ -29,7 +29,7 @@ describe TriggerScheduleWorker do
end
context 'when there are no scheduled triggers within next_run_at' do
- let!(:trigger_schedule) { create(:ci_trigger_schedule, :cron_nightly_build) }
+ let!(:trigger_schedule) { create(:ci_trigger_schedule, :nightly) }
before do
worker.perform