Skip to content

Support for diffing message expectations? #205

Open

Description

@babelfish

I was happy to find this project as this is a regular frustration of mine, but it doesn't appear to support message expectations from rspec-mocks. I deal with a lot of tests that include something like:

expect(foo).to receive(:bar).with(
  hash_including(so_many_things...)
)

Trying to parse the normal rspec output for this when something is off is an absolute nightmare.

I see !67, but it hasn't been touched in 4 years. Is there any plan to finish this feature?

Activity

  1. mcmire commented on Jan 31, 2024

    @mcmire
    Collaborator

    Hi @babelfish! Sorry for the late response. Thanks for the reminder on that feature — you're right that this gem doesn't support message expectations currently, and that PR was originally designed to solve it. I believe I stopped it because I realized I would need to write a ton of tests 😅 I'm trying to work through some of the lower hanging fruit at the moment but I will try to dust it off soon as I agree it would be worthwhile.

  2. smcabrera commented on Mar 3, 2025

    @smcabrera

    Wanted to second a vote for this feature, it's what I came to the gem looking for and wrongly assumed that this would work out of the box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions