job_queue 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/job_queue/adapters/beanstalk_adapter.rb +1 -1
- data/spec/common_adapter_spec.rb +4 -0
- metadata +1 -1
data/VERSION.yml
CHANGED
data/spec/common_adapter_spec.rb
CHANGED
@@ -58,5 +58,9 @@ shared_examples_for "JobQueue adapter queue length" do
|
|
58
58
|
JobQueue.queue_length('test').should == 0
|
59
59
|
5.times { JobQueue.put("hello", :queue => "test") }
|
60
60
|
JobQueue.queue_length('test').should == 5
|
61
|
+
JobQueue.subscribe(:queue => "test") do |job|
|
62
|
+
throw :stop
|
63
|
+
end
|
64
|
+
JobQueue.queue_length('test').should == 4
|
61
65
|
end
|
62
66
|
end
|