test/test_helper.rb in resque-throttle-0.2.9 vs test/test_helper.rb in resque-throttle-0.2.10
- old
+ new
@@ -26,19 +26,20 @@
def self.perform(some_id, some_other_thing)
end
end
-class IdetifierThrottledJob < Resque::ThrottledJob
+class IdentifierThrottledJob < Resque::ThrottledJob
@queue = :some_queue
throttle :can_run_every => 3600
def self.perform(some_id, some_other_thing)
end
def self.identifier(*args)
- "my_identifier"
+ first, second = *args
+ "my_#{first}"
end
end
class DisabledThrottledJob < Resque::ThrottledJob
@queue = :some_queue