ammeter icon indicating copy to clipboard operation
ammeter copied to clipboard

ammeter breaks RSpec's built-in `exist` matcher

Open tragiclifestories opened this issue 5 years ago • 3 comments

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.

tragiclifestories avatar Feb 26 '19 15:02 tragiclifestories

Is this still an issue?

pyromaniackeca avatar Dec 24 '21 17:12 pyromaniackeca

yes

cflipse avatar Jan 20 '22 21:01 cflipse

I'd completely forgotten about this 😅 I bumped the link reproduction to the latest RSpec and ammeter and the error still occurs.

tragiclifestories avatar Jan 20 '22 23:01 tragiclifestories

I suggest pulling this gem down and just re naming the matcher. The exist matcher needs to be renamed to fix the issue.

redferret avatar Jan 12 '23 21:01 redferret