test/test_helper.rb in backburner-0.2.5 vs test/test_helper.rb in backburner-0.2.6
- old
+ new
@@ -86,10 +86,10 @@
def pop_one_job(tube_name)
connection = Backburner::Worker.connection
tube_name = [Backburner.configuration.tube_namespace, tube_name].join(".")
connection.tubes.watch!(tube_name)
silenced(3) { @res = connection.tubes.reserve }
- return @res, @res.body
+ return @res, JSON.parse(@res.body)
end
# clear_jobs!('foo')
def clear_jobs!(*tube_names)
tube_names.each do |tube_name|
\ No newline at end of file