Skip to content
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
Closed
@laserlemon

Description

@laserlemon

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions