File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def disposition(params)
5757
5858 context "with filename set to nil" do
5959 let ( :part ) { HTTP ::FormData ::Part . new ( "s" , :content_type => "mime/type" ) }
60- let ( :form_data ) { HTTP ::FormData ::Multipart . new ( :foo => part ) }
60+ let ( :form_data ) { HTTP ::FormData ::Multipart . new ( { :foo => part } ) }
6161
6262 it "doesn't include a filename" do
6363 boundary_value = form_data . content_type [ /(#{ boundary } )$/ , 1 ]
@@ -74,7 +74,7 @@ def disposition(params)
7474
7575 context "with content type set to nil" do
7676 let ( :part ) { HTTP ::FormData ::Part . new ( "s" ) }
77- let ( :form_data ) { HTTP ::FormData ::Multipart . new ( :foo => part ) }
77+ let ( :form_data ) { HTTP ::FormData ::Multipart . new ( { :foo => part } ) }
7878
7979 it "doesn't include a filename" do
8080 boundary_value = form_data . content_type [ /(#{ boundary } )$/ , 1 ]
Original file line number Diff line number Diff line change 33RSpec . describe HTTP ::FormData ::Part do
44 let ( :body ) { "" }
55 let ( :opts ) { { } }
6- subject ( :part ) { HTTP ::FormData ::Part . new ( body , opts ) }
6+ subject ( :part ) { HTTP ::FormData ::Part . new ( body , ** opts ) }
77
88 describe "#size" do
99 subject { part . size }
You can’t perform that action at this time.
0 commit comments