Skip to content

NoMethodError: undefined method `failure_message' for Capybara::Helpers:Module #43

@joelparkerhenderson

Description

@joelparkerhenderson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions