diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-04-30 00:47:28 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-04-30 00:47:28 +0000 |
commit | 87b792445e5e38291fc50b6c3b825a63e9adf130 (patch) | |
tree | bf2ffe16b1818ee94a62834f28a2acca71ae8d70 /test/unit/test_server.rb | |
parent | 83d2170442144a1b2f623b32a1291befaf59c968 (diff) | |
download | unicorn-87b792445e5e38291fc50b6c3b825a63e9adf130.tar.gz |
This is useful as a :listeners argument when setting up Raindrops::Middleware (http://raindrops.bogomips.org/), as it can be done automatically.
Diffstat (limited to 'test/unit/test_server.rb')
-rw-r--r-- | test/unit/test_server.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/test_server.rb b/test/unit/test_server.rb index 36333a0..41d3e02 100644 --- a/test/unit/test_server.rb +++ b/test/unit/test_server.rb @@ -283,5 +283,9 @@ class WebServerTest < Test::Unit::TestCase } end + def test_listener_names + assert_equal [ "127.0.0.1:#@port" ], Unicorn.listener_names + end + end |