spec/lib/delivery/postback_spec.rb in mail_room-0.7.0 vs spec/lib/delivery/postback_spec.rb in mail_room-0.8.0

- old
+ new

@@ -19,13 +19,13 @@ request.stubs(:url) request.stubs(:body=) MailRoom::Delivery::Postback.new(mailbox).deliver('a message') - connection.should have_received(:token_auth).with('abcdefg') - connection.should have_received(:post) + expect(connection).to have_received(:token_auth).with('abcdefg') + expect(connection).to have_received(:post) - request.should have_received(:url).with('http://localhost/inbox') - request.should have_received(:body=).with('a message') + expect(request).to have_received(:url).with('http://localhost/inbox') + expect(request).to have_received(:body=).with('a message') end end end