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
[WIP] Support Rails 5.2.X #376
Conversation
@xtrasimplicity @mvz I'm getting the following error
I'm not really sure why the test Rails apps can't find bootsnap. It appears to be in their Gemfile. Do you have any suggestions on how to get past that issue? |
@roberts1000 The gems defined in the appraisal should be loaded when the temporary rails app starts, but if not you can force a gem to be added to the temporary application's gem file from within the step definitions. The following should give you an idea of how we've handled this in the past. :) def install_cucumber_rails(*options)
[...]
# From Rails 5.1 some gems are already part of the Gemfile
if Gem.loaded_specs['rails'].version < Gem::Version.new('5.1.0')
gem 'capybara', group: :test
gem 'selenium-webdriver', group: :test
end
[...]
end Source: features/step_definitions/cucumber_rails_steps.rb Apologies for any strange formatting - I'm using my phone. Hope this helps. :) |
Thanks for the suggestion! I gave it a shot but it doesn't seem to work with the updated Appraisal files or by modifying |
@roberts1000 What version of bootsnap is listed in the Gemfile.lock file in the temporary app's root directory? A quick google suggests it could be a version issue (though I doubt it, given you've specified >= 1.1.0, and a Google search suggest it occurs on versions < 1.0). |
It has |
@roberts1000 What is printed to stdout when you use the https://relishapp.com/cucumber/aruba/v/0-9-0/docs/announce-output-during-test-run |
I'm going to close this, as it is covered by #378 - which will soon be merged. Thanks for all of your effort, @roberts1000! |
Thanks for helping with this PR and getting the problem solved in the other PR! Wish I could have done more, but I got sidetracked by Rails Conf and travel. |
Summary
Allow cucumber-rails to bundle with projects that use Rails 5.2.X.
Types of changes
Checklist: