summaryrefslogtreecommitdiff
path: root/test/spec_multipart.rb
diff options
context:
space:
mode:
authoryhirano55 <yhirano@me.com>2018-04-17 17:50:18 +0900
committerJeremy Daer <jeremydaer@gmail.com>2018-04-17 01:50:18 -0700
commitb72bfc9435c118c54019efae1fedd119521b76df (patch)
tree1ddc6654e0390e02c8d995cbcbcc27770df3e225 /test/spec_multipart.rb
parent17d56111627874a45b479e52f13627332e1c83e1 (diff)
downloadrack-b72bfc9435c118c54019efae1fedd119521b76df.tar.gz
RuboCop: enable Layout/Space* cops (#1259)
Diffstat (limited to 'test/spec_multipart.rb')
-rw-r--r--test/spec_multipart.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/spec_multipart.rb b/test/spec_multipart.rb
index 71a6a80e..d4a22d55 100644
--- a/test/spec_multipart.rb
+++ b/test/spec_multipart.rb
@@ -172,7 +172,7 @@ describe Rack::Multipart do
c = Class.new(Rack::QueryParser::Params) do
def initialize(*)
super
- @params = Hash.new{|h,k| h[k.to_s] if k.is_a?(Symbol)}
+ @params = Hash.new{|h, k| h[k.to_s] if k.is_a?(Symbol)}
end
end
query_parser = Rack::QueryParser.new c, 65536, 100
@@ -477,7 +477,7 @@ Content-Type: image/jpeg\r
it "builds nested multipart body" do
files = Rack::Multipart::UploadedFile.new(multipart_file("file1.txt"))
- data = Rack::Multipart.build_multipart("people" => [{"submit-name" => "Larry", "files" => files}])
+ data = Rack::Multipart.build_multipart("people" => [{ "submit-name" => "Larry", "files" => files }])
options = {
"CONTENT_TYPE" => "multipart/form-data; boundary=AaB03x",
@@ -557,7 +557,7 @@ Content-Type: image/jpeg\r
end
it "return nil if no UploadedFiles were used" do
- data = Rack::Multipart.build_multipart("people" => [{"submit-name" => "Larry", "files" => "contents"}])
+ data = Rack::Multipart.build_multipart("people" => [{ "submit-name" => "Larry", "files" => "contents" }])
data.must_be_nil
end
@@ -584,7 +584,7 @@ EOF
env = Rack::MockRequest.env_for("/", options)
params = Rack::Multipart.parse_multipart(env)
- params.must_equal "description"=>"Very very blue"
+ params.must_equal "description" => "Very very blue"
end
it "parse multipart upload with no content-length header" do