spec/ethon/easy/http/put_spec.rb in ethon-0.7.0 vs spec/ethon/easy/http/put_spec.rb in ethon-0.7.1
- old
+ new
@@ -13,16 +13,16 @@
put.setup(easy)
expect(easy.url).to eq(url)
end
it "sets upload" do
- easy.should_receive(:upload=).with(true)
+ expect(easy).to receive(:upload=).with(true)
put.setup(easy)
end
it "sets infilesize" do
- easy.should_receive(:infilesize=).with(0)
+ expect(easy).to receive(:infilesize=).with(0)
put.setup(easy)
end
context "when requesting" do
it "makes a put request" do
@@ -40,16 +40,16 @@
put.setup(easy)
expect(easy.url).to eq("#{url}?a=1%26")
end
it "sets upload" do
- easy.should_receive(:upload=).with(true)
+ expect(easy).to receive(:upload=).with(true)
put.setup(easy)
end
it "sets infilesize" do
- easy.should_receive(:infilesize=).with(0)
+ expect(easy).to receive(:infilesize=).with(0)
put.setup(easy)
end
context "when requesting" do
before do
@@ -65,20 +65,20 @@
context "when body" do
let(:form) { {:a => "1&b=2"} }
it "sets infilesize" do
- easy.should_receive(:infilesize=).with(11)
+ expect(easy).to receive(:infilesize=).with(11)
put.setup(easy)
end
it "sets readfunction" do
- easy.should_receive(:readfunction)
+ expect(easy).to receive(:readfunction)
put.setup(easy)
end
it "sets upload" do
- easy.should_receive(:upload=).with(true)
+ expect(easy).to receive(:upload=).with(true)
put.setup(easy)
end
context "when requesting" do
context "sending string body" do