aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/send_file_test.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-06-25 14:47:15 -0500
committerJoshua Peek <josh@joshpeek.com>2009-06-25 14:47:15 -0500
commit7837da41a378a69f88763701291a79ef55f14dea (patch)
tree925ac04f3b121db2b2ab7b03b8ac3bcc341104ad /actionpack/test/controller/send_file_test.rb
parent7aa730440c2143051b46c0857e637100f9367628 (diff)
downloadrails-7837da41a378a69f88763701291a79ef55f14dea.tar.gz
rails-7837da41a378a69f88763701291a79ef55f14dea.tar.bz2
rails-7837da41a378a69f88763701291a79ef55f14dea.zip
send_data should set Content-Length as a string
Diffstat (limited to 'actionpack/test/controller/send_file_test.rb')
-rw-r--r--actionpack/test/controller/send_file_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/send_file_test.rb b/actionpack/test/controller/send_file_test.rb
index d88d5c5dac..ae32ee5649 100644
--- a/actionpack/test/controller/send_file_test.rb
+++ b/actionpack/test/controller/send_file_test.rb
@@ -115,7 +115,7 @@ class SendFileTest < ActionController::TestCase
@controller.send(:send_file_headers!, options)
h = @controller.headers
- assert_equal 1, h['Content-Length']
+ assert_equal '1', h['Content-Length']
assert_equal 'image/png', @controller.content_type
assert_equal 'disposition; filename="filename"', h['Content-Disposition']
assert_equal 'binary', h['Content-Transfer-Encoding']