active_batch 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/jobs/active_batch/batch_scheduler_job.rb +2 -2
- data/lib/active_batch/batched_job.rb +2 -2
- data/lib/active_batch/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +1985 -0
- data/test/jobs/active_batch/batch_scheduler_job_test.rb +1 -1
- data/test/lib/active_batch/batched_job_test.rb +2 -2
- metadata +2 -2
@@ -39,7 +39,7 @@ module ActiveBatch
|
|
39
39
|
|
40
40
|
test 'uses same queue than the Batch Job' do
|
41
41
|
assert_enqueued_with(job: BatchSchedulerJob, queue: BatchJob.new.queue_name) do
|
42
|
-
BatchSchedulerJob.perform_later(BatchJob)
|
42
|
+
BatchSchedulerJob.perform_later(BatchJob.name)
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
@@ -20,9 +20,9 @@ module ActiveBatch
|
|
20
20
|
end
|
21
21
|
|
22
22
|
test 'can perform batch' do
|
23
|
-
assert_enqueued_with(job: BatchSchedulerJob, args: [BatchJob, 1, 2]) do
|
23
|
+
assert_enqueued_with(job: BatchSchedulerJob, args: [BatchJob.name, 1, 2]) do
|
24
24
|
BatchJob.perform_batch(1, 2)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
28
|
-
end
|
28
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_batch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- adrien
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|