capybara: within conflicts with RSpec 3
Use this self-contained gist to recreate the issue: https://gist.github.com/bilus/7213a2914a8bb33cefb7
Dependencies: ruby 2.1.2 capybara 2.4.4 rspec 3.2.0 sinatra 1.4.6
Problem: It doesn’t fill in email and name, find doesn’t work as well.
To make it pass, comment out include RSpec::Matchers in line 38.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 15 (5 by maintainers)
@bilus
For this simple app, to make test pass, you need only to swap
includes:In this way
Capybara::DSLoverwriteswithinfromRSpec::Matchersand test pass. I don’t know, how you setup your Cucumber configuration. But try to change the way youincludemodule orrequirelibrary. So RSpec should go before Capybara.