delayed_job_extras 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/delayed_job_test_enhancements.rb +16 -11
- metadata +1 -1
@@ -1,14 +1,19 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
unless defined?('DELAYED_JOB_TEST_ENHANCEMENTS')
|
2
|
+
|
3
|
+
module Delayed
|
4
|
+
class Job
|
3
5
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
class << self
|
7
|
+
def enqueue_with_work_off(obj, *args)
|
8
|
+
job = enqueue_without_work_off(obj, *args)
|
9
|
+
job.invoke_job
|
10
|
+
return job
|
11
|
+
end
|
12
|
+
alias_method_chain :enqueue, :work_off
|
9
13
|
end
|
10
|
-
alias_method_chain :enqueue, :work_off
|
11
|
-
end
|
12
14
|
|
13
|
-
|
14
|
-
end
|
15
|
+
end # Job
|
16
|
+
end # Delayed
|
17
|
+
|
18
|
+
DELAYED_JOB_TEST_ENHANCEMENTS = 1
|
19
|
+
end # unless defined?('DELAYED_JOB_TEST_ENHANCEMENTS')
|