diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-06-28 17:21:38 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-06-28 17:21:38 -0700 |
commit | 3f81230a723a04a49aa28baf038566768bd392ce (patch) | |
tree | 726f3516989f255da90c38762e531006ce4a4b3e | |
parent | 1b6aa27320f8ae4a34fcb5fbfb83a448449a76b5 (diff) | |
download | rails-3f81230a723a04a49aa28baf038566768bd392ce.tar.gz rails-3f81230a723a04a49aa28baf038566768bd392ce.tar.bz2 rails-3f81230a723a04a49aa28baf038566768bd392ce.zip |
use bytesize rather than force encoding
-rw-r--r-- | actionpack/test/dispatch/request/multipart_params_parsing_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/request/multipart_params_parsing_test.rb b/actionpack/test/dispatch/request/multipart_params_parsing_test.rb index 3c30a705e9..2a2f92b5b3 100644 --- a/actionpack/test/dispatch/request/multipart_params_parsing_test.rb +++ b/actionpack/test/dispatch/request/multipart_params_parsing_test.rb @@ -108,8 +108,7 @@ class MultipartParamsParsingTest < ActionDispatch::IntegrationTest # Rack doesn't handle multipart/mixed for us. files = params['files'] - files.force_encoding('ASCII-8BIT') - assert_equal 19756, files.size + assert_equal 19756, files.bytesize end test "does not create tempfile if no file has been selected" do |