aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/send_file_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/send_file_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/send_file_test.rb')
-rw-r--r--actionpack/test/controller/send_file_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/send_file_test.rb b/actionpack/test/controller/send_file_test.rb
index ffbaa457f8..c4349bfc7f 100644
--- a/actionpack/test/controller/send_file_test.rb
+++ b/actionpack/test/controller/send_file_test.rb
@@ -123,13 +123,13 @@ class SendFileTest < Test::Unit::TestCase
define_method "test_send_#{method}_status" do
@controller.options = { :stream => false, :status => 500 }
assert_nothing_raised { assert_not_nil process(method) }
- assert_equal '500 Internal Server Error', @response.headers['Status']
+ assert_equal '500 Internal Server Error', @response.status
end
define_method "test_default_send_#{method}_status" do
@controller.options = { :stream => false }
assert_nothing_raised { assert_not_nil process(method) }
- assert_equal ActionController::Base::DEFAULT_RENDER_STATUS_CODE, @response.headers['Status']
+ assert_equal ActionController::Base::DEFAULT_RENDER_STATUS_CODE, @response.status
end
end
end