Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

only run these tests on Ruby's that support encoding

  • Loading branch information...
commit 700fbdafc3124a2835edbba483406bbcc5af433b 1 parent 17bd4a1
@tenderlove tenderlove authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  test/spec_multipart.rb
View
2  test/spec_multipart.rb
@@ -30,6 +30,7 @@ def multipart_file(name)
params["text"].should.equal "contents"
end
+ if "<3".respond_to?(:force_encoding)
should "set US_ASCII encoding based on charset" do
env = Rack::MockRequest.env_for("/", multipart_fixture(:content_type_and_no_filename))
params = Rack::Multipart.parse_multipart(env)
@@ -65,6 +66,7 @@ def multipart_file(name)
key.encoding.should.equal Encoding::UTF_8
end
end
+ end
should "raise RangeError if the key space is exhausted" do
env = Rack::MockRequest.env_for("/", multipart_fixture(:content_type_and_no_filename))
Please sign in to comment.
Something went wrong with that request. Please try again.