Skip to content

Commit 1095586

Browse files
committed
1 parent b005f6a commit 1095586

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

spec/lib/http/form_data/multipart_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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]

spec/lib/http/form_data/part_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
RSpec.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 }

0 commit comments

Comments
 (0)