Hi, I'm trying minitest-rails-capybara for the first time, and getting this error message:
- NoMethodError: undefined method `failure_message' for Capybara::Helpers:Module
Perhaps this has the same cause as wojtekmach/minitest-capybara#17
Quote: The reason is because the Capybara::Helpers.failure_message method was refactored and disappeared in 2.9: teamcapybara/capybara#1748
The PR above has a fix.
I fixed the problem short term by using this code:
I put the code here in my Rails project:
- spec/support/capybara/helpers/failure_message.rb