aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/queueing.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2012-10-26 19:11:19 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2012-10-26 19:11:19 -0700
commitb79444053c6e000180c3b7787140bdb3cdafa183 (patch)
treeaac77f8f73d3e204507f882015f0345c41bca033 /activesupport/lib/active_support/queueing.rb
parentbf2009f995dd8cf5cbe43908de18580d0e94e2e1 (diff)
downloadrails-b79444053c6e000180c3b7787140bdb3cdafa183.tar.gz
rails-b79444053c6e000180c3b7787140bdb3cdafa183.tar.bz2
rails-b79444053c6e000180c3b7787140bdb3cdafa183.zip
Fix queueing tests that should be consuming the queue rather than draining it
Diffstat (limited to 'activesupport/lib/active_support/queueing.rb')
-rw-r--r--activesupport/lib/active_support/queueing.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/queueing.rb b/activesupport/lib/active_support/queueing.rb
index 064f009f13..a89a48d057 100644
--- a/activesupport/lib/active_support/queueing.rb
+++ b/activesupport/lib/active_support/queueing.rb
@@ -83,7 +83,7 @@ module ActiveSupport
end
def drain
- run(@queue.pop) until @queue.empty?
+ @queue.pop.run until @queue.empty?
end
def consume