-
-
Notifications
You must be signed in to change notification settings - Fork 761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
match matcher in custom matcher with expect syntax #725
Comments
Looks like after trying to define method(:match).source_location # => [".../rspec-expectations-2.11.3/lib/rspec/matchers.rb", 494] https://github.com/rspec/rspec-expectations/blob/master/lib/rspec/matchers.rb#L494-496 |
Ah, thanks for verifying! |
This issue was tagged as |
@hgmnz I'm not sure who flagged it as wrong tracker, but yes, it does belong in rspec-expectations. As for who is responsible to move it, it's better if you close this one and open a new one there so you can find it easily later in the other tracker (under issues created by you). Happy to move it myself if you don't care about that. |
@dchelimsky thanks, moved it to rspec/rspec-expectations#188 |
@hgmnz thank you! |
@dchelimsky no, thank you! 🎁 |
..that's a mouthful.
Basically, If I'm using the new
expect
synthax, and I define a custom matcher that utilizes thematch
matcher, there is an unexpected issue withwrong number of arguments
.Here's a small example reproducing the problem:
https://gist.github.com/4937936fe14adeddcc9d
The text was updated successfully, but these errors were encountered: