spec/ethon/easy/form_spec.rb in ethon-0.10.1 vs spec/ethon/easy/form_spec.rb in ethon-0.11.0

- old
+ new

@@ -39,9 +39,18 @@ it "returns true" do expect(form.multipart?).to be_truthy end end + + context "when options contains multipart=true" do + before { form.instance_variable_set(:@multipart, true) } + let(:pairs) { [['a', '1'], ['b', '2']] } + + it "returns true" do + expect(form.multipart?).to be_truthy + end + end end describe "#materialize" do before { form.instance_variable_set(:@query_pairs, pairs) }