diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-04-24 15:00:40 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-04-24 15:00:40 -0700 |
commit | a1c61a663dbeda29967614ead7cac018281ed9de (patch) | |
tree | 68ce50e723d04665d546ef2f4e2cb4342026725a /test/unit/test_configurator.rb | |
parent | ffe6208286b282db2b2e35ae811c9bd014098fe0 (diff) | |
download | unicorn-a1c61a663dbeda29967614ead7cac018281ed9de.tar.gz |
The following specifications to bind port 8080 on all interfaces are now accepted in the configuration file: listen "8080" # (with quotes) listen 8080 # (without quotes)
Diffstat (limited to 'test/unit/test_configurator.rb')
-rw-r--r-- | test/unit/test_configurator.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/test_configurator.rb b/test/unit/test_configurator.rb index 0baaa79..98f2db6 100644 --- a/test/unit/test_configurator.rb +++ b/test/unit/test_configurator.rb @@ -26,6 +26,8 @@ class TestConfigurator < Test::Unit::TestCase assert_equal "0.0.0.0:2007", meth.call('0.0.0.0:2007') assert_equal "0.0.0.0:2007", meth.call(':2007') assert_equal "0.0.0.0:2007", meth.call('*:2007') + assert_equal "0.0.0.0:2007", meth.call('2007') + assert_equal "0.0.0.0:2007", meth.call(2007) assert_match %r{\A\d+\.\d+\.\d+\.\d+:2007\z}, meth.call('1:2007') assert_match %r{\A\d+\.\d+\.\d+\.\d+:2007\z}, meth.call('2:2007') end |