spec/lib/snapme/snapper_spec.rb in snapme-0.1.2 vs spec/lib/snapme/snapper_spec.rb in snapme-0.1.3
- old
+ new
@@ -22,9 +22,10 @@
# object. I'm willing to accept this for now...
expect(Curl::Easy).to receive(:new).with(snapper.endpoint_url).and_return(curl)
expect(Curl::PostField).to receive(:file)
.with(snapper.field_name, snapper.filename)
.and_return(file)
+ expect(curl).to receive(:multipart_form_post=).with(true)
expect(curl).to receive(:http_post).with(file)
snapper.run(false)
end
end