spec/ethon/easy/form_spec.rb in ethon-0.7.0 vs spec/ethon/easy/form_spec.rb in ethon-0.7.1
- old
+ new
@@ -28,19 +28,19 @@
context "when query_pairs contains string values" do
let(:pairs) { [['a', '1'], ['b', '2']] }
it "returns false" do
- expect(form.multipart?).to be_false
+ expect(form.multipart?).to be_falsey
end
end
context "when query_pairs contains file" do
let(:pairs) { [['a', '1'], ['b', ['path', 'encoding', 'abs_path']]] }
it "returns true" do
- expect(form.multipart?).to be_true
+ expect(form.multipart?).to be_truthy
end
end
end
describe "#materialize" do
@@ -48,28 +48,28 @@
context "when query_pairs contains string values" do
let(:pairs) { [['a', '1']] }
it "adds params to form" do
- Ethon::Curl.should_receive(:formadd)
+ expect(Ethon::Curl).to receive(:formadd)
form.materialize
end
end
context "when query_pairs contains nil" do
let(:pairs) { [['a', nil]] }
it "adds params to form" do
- Ethon::Curl.should_receive(:formadd)
+ expect(Ethon::Curl).to receive(:formadd)
form.materialize
end
end
context "when query_pairs contains file" do
let(:pairs) { [['a', ["file", "type", "path/file"]]] }
it "adds file to form" do
- Ethon::Curl.should_receive(:formadd)
+ expect(Ethon::Curl).to receive(:formadd)
form.materialize
end
end
end
end