diff options
Diffstat (limited to 'test/spec_multipart.rb')
-rw-r--r-- | test/spec_multipart.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/spec_multipart.rb b/test/spec_multipart.rb index 9e8a6140..3a9f7b35 100644 --- a/test/spec_multipart.rb +++ b/test/spec_multipart.rb @@ -72,6 +72,13 @@ describe Rack::Multipart do end end + it "handles quoted encodings" do + # See #905 + env = Rack::MockRequest.env_for("/", multipart_fixture(:unity3d_wwwform)) + params = Rack::Multipart.parse_multipart(env) + params['user_sid'].encoding.must_equal Encoding::UTF_8 + end + it "raise RangeError if the key space is exhausted" do env = Rack::MockRequest.env_for("/", multipart_fixture(:content_type_and_no_filename)) |