It disallows using find for ID selectors, i.e. find('#foo') should become find_by_id('foo').
I feel that using selectors is the most "natural" approach for us and that sometimes disallowing find causes more friction than it's helpful. IMO we should disable that cop in our config.
The RSpec/Capybara/SpecificFinders cop is provided by rubocop-rspec and enabled by default.
It disallows using
find
for ID selectors, i.e.find('#foo')
should becomefind_by_id('foo')
.I feel that using selectors is the most "natural" approach for us and that sometimes disallowing
find
causes more friction than it's helpful. IMO we should disable that cop in our config.Please vote: