Skip to content

Commit

Permalink
Fix multipart UTF-8 spec with rack 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Jun 27, 2022
1 parent 830bf03 commit 0da6ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/rack/test/utils_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def respond_to?(m, *a)
}
env = Rack::MockRequest.env_for('/', options)
params = Rack::Multipart.parse_multipart(env)
params['people'][0]['submit-name'].must_equal "\u1234"
params['people'][0]['submit-name'].b.must_equal "\u1234".b
params['people'][0]['files'][:filename].must_equal 'mb.txt'
params['people'][0]['files'][:tempfile].read.must_equal "\u2345".b
params['foo'].must_equal %w[1 2]
Expand Down

0 comments on commit 0da6ffe

Please sign in to comment.