spec/rapidash/response_error_spec.rb in rapidash-0.3.1 vs spec/rapidash/response_error_spec.rb in rapidash-0.4.0

- old
+ new

@@ -40,10 +40,10 @@ let(:response) { MyCustomResponseError.new(env) } let(:env) { { :status => '404', :method => 'post', :url => 'http://acme.com/api/posts', :body => ['name cannot be blank', 'content cannot be blank'] } } it "should call #errors" do - response.should_receive(:errors) + expect(response).to receive(:errors) response.send(:message) end it "should create a formatted error message" do message = response.send(:message)