test/scheduler_test.rb in resque-scheduler-1.9.9 vs test/scheduler_test.rb in resque-scheduler-1.9.10

- old
+ new

@@ -27,10 +27,10 @@ def test_enqueue_from_config_puts_stuff_in_the_resque_queue Resque::Job.stubs(:create).once.returns(true).with(:ivar, 'SomeIvarJob', '/tmp') Resque::Scheduler.enqueue_from_config('cron' => "* * * * *", 'class' => 'SomeIvarJob', 'args' => "/tmp") end - + def test_enqueue_from_config_with_custom_class_job_in_the_resque_queue FakeJob.stubs(:scheduled).once.returns(true).with(:ivar, 'SomeIvarJob', '/tmp') Resque::Scheduler.enqueue_from_config('cron' => "* * * * *", 'class' => 'SomeIvarJob', 'custom_job_class' => 'Resque::SchedulerTest::FakeJob', 'args' => "/tmp") end