You can clone with
Now that the preferred RSpec syntax is:
expect(2 + 2).to eql(4)
(2 + 2).should eq(4)
, should this also change:
expect(user).to receive(:update_attributes).with(name: "Steve")
I like the new expect syntax but feel funny every time I use should_receive because it doesn't feel consistent. I just wanted to open up the conversation. Thank you!
There's an ongoing discussion about this in rspec/rspec-mocks#153. The short answer is that we're already planning on doing this but haven't gotten around to it yet.