lib/beanstalk-client-rspec.rb in beanstalk-client-rspec-0.0.8 vs lib/beanstalk-client-rspec.rb in beanstalk-client-rspec-0.0.9

- old
+ new

@@ -108,10 +108,10 @@ (@tubes[@last_used]['ready'] ||= Queue.new) << job [id] when /^delete (\d+)/ id = $1 @tubes.each_pair do |tube_name, states| - states['reserved'].delete_if {|job| job[:id] == id } + states['reserved'].delete_if {|job| job[:id] == id } if states['reserved'] end when /^stats-job (\d+)/ id = $1 @tubes.each_pair do |tube_name, states| job = states['reserved'].find {|job| job[:id] == id }