Skip to content

Commit

Permalink
Alias GirlFriday::WorkQueue to GirlFriday::Queue
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Apr 22, 2011
1 parent 25e9e48 commit f61e89b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/girl_friday/work_queue.rb
Expand Up @@ -149,4 +149,5 @@ def drain
end

end
Queue = WorkQueue
end
4 changes: 3 additions & 1 deletion test/test_girl_friday.rb
Expand Up @@ -139,11 +139,13 @@ def test_should_allow_graceful_shutdown

def test_should_create_workers_lazily
async_test do |cb|
queue = GirlFriday::WorkQueue.new('shutdown', :size => 2) do |msg|
queue = GirlFriday::Queue.new('shutdown', :size => 2) do |msg|
assert_equal 1, queue.instance_variable_get(:@ready_workers).size
cb.call
end
assert_nil queue.instance_variable_get(:@ready_workers)
# don't instantiate the worker threads until we actually put
# work onto the queue.
queue << 'empty msg'
end
end
Expand Down

0 comments on commit f61e89b

Please sign in to comment.