diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-06-29 05:27:18 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-06-29 17:48:11 -0700 |
commit | 4f05fb1a3b44f8eab1a9dda26d5b115f33a149cd (patch) | |
tree | e497aa94d7559f2825b97b19fdee076ab79b635c /test | |
parent | 1e10654f81e74c4d11ab538b16dcc1b7bd36cb7f (diff) | |
download | unicorn-4f05fb1a3b44f8eab1a9dda26d5b115f33a149cd.tar.gz |
The default is false because some applications were not written to handle partial reads (even though IO#read allows it, not just IO#readpartial).
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/test_configurator.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/test_configurator.rb b/test/unit/test_configurator.rb index 98f2db6..f836647 100644 --- a/test/unit/test_configurator.rb +++ b/test/unit/test_configurator.rb @@ -1,6 +1,6 @@ require 'test/unit' require 'tempfile' -require 'unicorn/configurator' +require 'unicorn' class TestConfigurator < Test::Unit::TestCase @@ -53,6 +53,7 @@ class TestConfigurator < Test::Unit::TestCase cfg = Unicorn::Configurator.new(:use_defaults => true) assert_nothing_raised { cfg.commit!(self) } Unicorn::Configurator::DEFAULTS.each do |key,value| + next if key == :stream_input assert_equal value, instance_variable_get("@#{key.to_s}") end end @@ -64,6 +65,7 @@ class TestConfigurator < Test::Unit::TestCase @logger = nil Unicorn::Configurator::DEFAULTS.each do |key,value| next if skip.include?(key) + next if key == :stream_input assert_equal value, instance_variable_get("@#{key.to_s}") end assert_nil @logger |