Skip to content
Browse files

use bytesize rather than force encoding

  • Loading branch information...
1 parent 1b6aa27 commit 3f81230a723a04a49aa28baf038566768bd392ce @tenderlove tenderlove committed Jun 28, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 actionpack/test/dispatch/request/multipart_params_parsing_test.rb
View
3 actionpack/test/dispatch/request/multipart_params_parsing_test.rb
@@ -108,8 +108,7 @@ def teardown
# 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

0 comments on commit 3f81230

Please sign in to comment.
Something went wrong with that request. Please try again.