test/delayed_queue_test.rb in brianjlandau-resque-scheduler-1.10.9 vs test/delayed_queue_test.rb in brianjlandau-resque-scheduler-1.10.10

- old
+ new

@@ -114,11 +114,11 @@ t = Time.now - 60 # in the past Resque.enqueue_at(t, SomeIvarJob) Resque.enqueue_at(t, SomeIvarJob) # 2 SomeIvarJob jobs should be created in the "ivar" queue - Resque::Job.expects(:create).twice.with('ivar', 'SomeIvarJob', nil) + Resque::Job.expects(:create).twice.with('ivar', SomeIvarJob, nil) Resque.expects(:queue_from_class).never # Should NOT need to load the class Resque::Scheduler.handle_delayed_items end def test_enqueue_delayed_items_for_timestamp @@ -126,11 +126,11 @@ Resque.enqueue_at(t, SomeIvarJob) Resque.enqueue_at(t, SomeIvarJob) # 2 SomeIvarJob jobs should be created in the "ivar" queue - Resque::Job.expects(:create).twice.with('ivar', 'SomeIvarJob', nil) + Resque::Job.expects(:create).twice.with('ivar', SomeIvarJob, nil) Resque.expects(:queue_from_class).never # Should NOT need to load the class Resque::Scheduler.enqueue_delayed_items_for_timestamp(t) # delayed queue for timestamp should be empty @@ -142,10 +142,10 @@ Resque.delayed_push(t, :class => 'SomeIvarJob') # Since we didn't specify :queue when calling delayed_push, it will be forced # to load the class to figure out the queue. This is the upgrade case from 1.0.4 # to 1.0.5. - Resque::Job.expects(:create).once.with(:ivar, 'SomeIvarJob', nil) + Resque::Job.expects(:create).once.with(:ivar, SomeIvarJob, nil) Resque::Scheduler.handle_delayed_items end def test_clearing_delayed_queue