spec/scheduling_spec.rb in delayed_cron-0.2.7 vs spec/scheduling_spec.rb in delayed_cron-0.2.8
- old
+ new
@@ -62,10 +62,10 @@
it "adjusts the interval based on the :at option" do
# Set Time.now to January 1, 2014 12:00:00 PM
Timecop.freeze(Time.local(2014, 1, 1, 12, 0, 0))
interval = 9.days
adjusted_interval = interval - 12.hours
- DelayedCron.processor.should_receive(:enqueue_delayed_cron)
+ expect(DelayedCron.processor).to receive(:enqueue_delayed_cron)
.with("SomeClass", "long_method", { interval: adjusted_interval.to_i, at: "00:00" })
DelayedCron.schedule("SomeClass", "long_method", { interval: interval, at: "00:00" })
end
end