This repository was archived by the owner on Nov 30, 2024. It is now read-only.
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
New should_receive syntax #214
Closed
Description
Now that the preferred RSpec syntax is:
expect(2 + 2).to eql(4)
rather than:
(2 + 2).should eq(4)
, should this also change:
user.should_receive(:update_attributes).with(name: "Steve")
to:
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!
Metadata
Metadata
Assignees
Labels
No labels