ammeter
ammeter copied to clipboard
ammeter breaks RSpec's built-in `exist` matcher
Example app demonstrating the problem here.
RSpec has a matcher built in that just calls the exist?
or exists?
method on the subject and passes if it returns true (or truthy I guess). requiring ammeter/init
clobbers that matcher and breaks any tests that rely on the default RSpec behaviour.
Is this still an issue?
yes
I'd completely forgotten about this 😅 I bumped the link reproduction to the latest RSpec and ammeter and the error still occurs.
I suggest pulling this gem down and just re naming the matcher.
The exist
matcher needs to be renamed to fix the issue.