-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot load such file -- capybara/minitest (LoadError) #30952
Comments
Minitest style assertions( |
Would there be merit in throwing an explicit exception about the minimum Capybara::VERSION ahead of this line instead of just letting it fall through like this, or is that something rails doesn't like to have in the code? |
Bundler and Rubygems already take care of this. The gemfile defines capybara |
Upgraded rails applications may have a Gemfile without a new enough capybara to run system tests. Setting a version here gives the user a more direct error message than they get otherwise. Resolves rails#30952
thanks @rafaelfranca I was aware we could specify gem versions like that in both Gemfile and gemspec, but did not realize we could do it in a normal ruby file as well. I put in a PR #30959 |
Steps to reproduce
We have Capybara locked at version 2.7.1 and see the error below when trying to require system tests. Will we be unable to load system tests until we can upgrade Capybara? Related to this issue on the rspec-rails gem.
Expected behavior
Tests should run.
Actual behavior
An error is thrown.
System configuration
Rails version: 5.1.4
Ruby version: 2.4.2
The text was updated successfully, but these errors were encountered: