aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/rack_test.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-12-19 15:05:51 -0600
committerJoshua Peek <josh@joshpeek.com>2008-12-19 15:05:51 -0600
commit3da1b94d07fbbd6cff342a822af1631ae167a9b8 (patch)
tree9d5c87ce38143ca196aa4681fc5a7678fb330073 /actionpack/test/controller/rack_test.rb
parent12e416a04b764d0b212e04a53b770f60dc0d7071 (diff)
downloadrails-3da1b94d07fbbd6cff342a822af1631ae167a9b8.tar.gz
rails-3da1b94d07fbbd6cff342a822af1631ae167a9b8.tar.bz2
rails-3da1b94d07fbbd6cff342a822af1631ae167a9b8.zip
Use status response accessor instead of the 'Status' header
Diffstat (limited to 'actionpack/test/controller/rack_test.rb')
-rw-r--r--actionpack/test/controller/rack_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/rack_test.rb b/actionpack/test/controller/rack_test.rb
index 3a8a00b7d7..51f43290d2 100644
--- a/actionpack/test/controller/rack_test.rb
+++ b/actionpack/test/controller/rack_test.rb
@@ -271,17 +271,17 @@ class RackResponseHeadersTest < BaseRackTest
def setup
super
@response = ActionController::RackResponse.new
- @response.headers['Status'] = "200 OK"
+ @response.status = "200 OK"
end
def test_content_type
[204, 304].each do |c|
- @response.headers['Status'] = c.to_s
+ @response.status = c.to_s
assert !response_headers.has_key?("Content-Type"), "#{c} should not have Content-Type header"
end
[200, 302, 404, 500].each do |c|
- @response.headers['Status'] = c.to_s
+ @response.status = c.to_s
assert response_headers.has_key?("Content-Type"), "#{c} did not have Content-Type header"
end
end