que-testing 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/que/testing/adapter.rb +5 -1
- data/lib/que/testing/que_ext.rb +1 -1
- data/lib/que/testing/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3466cee4064ebebd4ac58da6f7bc7dcb2bc631da
|
4
|
+
data.tar.gz: 5cf22bf14338aca22e54371cfb0488ae60ed8671
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26fa3ff25dcf5a24cd3a05ee1e05f41277d6c6d6bc8bc921647b7d0d3e1e5a05f9b6a0068863f809dc10fcc3ff4b2cf209b2e250d4ab8a6f94bab5b4717f0ee9
|
7
|
+
data.tar.gz: eed5aa6bb25da7b5e9d1737f3df73b41bc8f9c5a7bdeeecc59539e651de063521cebd7fc8d05fc653d4d6170227f88c37d9cf273d789f430610f6e57e33001a8
|
data/lib/que/testing/adapter.rb
CHANGED
@@ -12,7 +12,7 @@ module Que
|
|
12
12
|
|
13
13
|
job = JobParams.new(*params)
|
14
14
|
klass = class_for(job.job_class)
|
15
|
-
klass
|
15
|
+
jobs[klass] << job
|
16
16
|
params
|
17
17
|
end
|
18
18
|
|
@@ -23,6 +23,10 @@ module Que
|
|
23
23
|
def class_for(str)
|
24
24
|
str.split('::').reduce(Object, &:const_get)
|
25
25
|
end
|
26
|
+
|
27
|
+
def jobs
|
28
|
+
@jobs ||= Hash.new { |h,k| h[k] = [] }
|
29
|
+
end
|
26
30
|
end
|
27
31
|
end
|
28
32
|
end
|
data/lib/que/testing/que_ext.rb
CHANGED
data/lib/que/testing/version.rb
CHANGED