minitest-rails-capybara
minitest-rails-capybara copied to clipboard
NoMethodError: undefined method `failure_message' for Capybara::Helpers:Module
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 https://github.com/wojtekmach/minitest-capybara/pull/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:
- https://gist.github.com/Patru/6623747
I put the code here in my Rails project:
- spec/support/capybara/helpers/failure_message.rb