Skip to content

[rspec-mocks] and_call_original doesn't properly verify arguments from initialize when stubbing new #119

@JonRowe

Description

@JonRowe

and_call_original doesn't properly verify arguments from initialize when stubbing new

From rspec/rspec-support#419:

We added support for new => initialize for verifying doubles, and_call_original never got support for it, we would need to support it there. You need to check that the method is the original implementation and not a custom def self.new which is very common, and a few other things, so I'd much rather have that logic in mocks atm.

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