diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-12-19 17:15:22 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-12-19 17:15:22 -0600 |
commit | fda62ecf707b4023b30303dd0baf303f1ef8d344 (patch) | |
tree | 7329cd55304c2f5b092817171805fa7cf1088e97 /actionpack/test/controller/rack_test.rb | |
parent | a14bbd7a8574c3b485d4b71e0950b2b9ff4e90d7 (diff) | |
download | rails-fda62ecf707b4023b30303dd0baf303f1ef8d344.tar.gz rails-fda62ecf707b4023b30303dd0baf303f1ef8d344.tar.bz2 rails-fda62ecf707b4023b30303dd0baf303f1ef8d344.zip |
Rename AbstractResponse to Response and inheirt from Rack::Response
Diffstat (limited to 'actionpack/test/controller/rack_test.rb')
-rw-r--r-- | actionpack/test/controller/rack_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/test/controller/rack_test.rb b/actionpack/test/controller/rack_test.rb index 51f43290d2..81d103f0f9 100644 --- a/actionpack/test/controller/rack_test.rb +++ b/actionpack/test/controller/rack_test.rb @@ -229,7 +229,7 @@ end class RackResponseTest < BaseRackTest def setup super - @response = ActionController::RackResponse.new + @response = ActionController::Response.new end def test_simple_output @@ -237,7 +237,7 @@ class RackResponseTest < BaseRackTest @response.prepare! status, headers, body = @response.to_a - assert_equal "200 OK", status + assert_equal 200, status assert_equal({ "Content-Type" => "text/html; charset=utf-8", "Cache-Control" => "private, max-age=0, must-revalidate", @@ -258,7 +258,7 @@ class RackResponseTest < BaseRackTest @response.prepare! status, headers, body = @response.to_a - assert_equal "200 OK", status + assert_equal 200, status assert_equal({"Content-Type" => "text/html; charset=utf-8", "Cache-Control" => "no-cache", "Set-Cookie" => []}, headers) parts = [] @@ -270,7 +270,7 @@ end class RackResponseHeadersTest < BaseRackTest def setup super - @response = ActionController::RackResponse.new + @response = ActionController::Response.new @response.status = "200 OK" end |