diff options
author | zedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9> | 2006-01-28 20:27:34 +0000 |
---|---|---|
committer | zedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9> | 2006-01-28 20:27:34 +0000 |
commit | 165cc5d978f5ac38fc486e45ac0d4f51c834473b (patch) | |
tree | 4ed3dd1649241dc9475d47601e90703ea4efcc49 /test | |
parent | 6a5116197a687798f1dc9b533796a8319cb82c2e (diff) | |
download | unicorn-165cc5d978f5ac38fc486e45ac0d4f51c834473b.tar.gz |
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@10 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'test')
-rw-r--r-- | test/test_response.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/test/test_response.rb b/test/test_response.rb index f033ba6..d436bfa 100644 --- a/test/test_response.rb +++ b/test/test_response.rb @@ -11,11 +11,10 @@ class ResponseTest < Test::Unit::TestCase resp.status = 200 resp.header["Accept"] = "text/plain" resp.header["X-Whatever"] = "stuff" - resp.out.write("test") + resp.body.write("test") resp.finished - out.rewind - puts out.read + assert out.length > 0, "output didn't have data" end def test_response_200 @@ -26,9 +25,7 @@ class ResponseTest < Test::Unit::TestCase out.write("tested") out.write("hello!") end - - io.rewind - puts io.read + assert io.length > 0, "output didn't have data" end def test_response_404 @@ -40,8 +37,7 @@ class ResponseTest < Test::Unit::TestCase out.write("NOT FOUND") end - io.rewind - puts io.read + assert io.length > 0, "output didn't have data" end end |