-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Fix puma loading in Rails 5.1 #1884
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
Conversation
This LGTM @samphippen, merge on green and get out a bugfix :) |
* Fix puma loading in Rails 5.1 * Prevent system tests loading without capybara * Allow rescuing exceptions for system test * Fix rubocop lints
If I understand this PR correctly it's disabling entirely system tests entirely if Puma is not present because it's a hard requirement for system tests in Rails 5.1, right? IMO Puma should be the default for System tests but not a hard requirement and we must allow the use of alternatives. I'll try to improve this on Rails side to make this work even when puma gem isn't present (making Puma the default but allowing the use alternative servers as WebRick and Unicorn for SystemTestCase) We aren't requiring to Puma gem directly in SystemTestCase anymore: rails/rails@50f6976 and Puma is set as default server through I'll create a test app with rails master and rspec 3.7.0 to check if the error persists and hopefully, we can backport this to 5.1.x |
I've created a test app with rails master, rspec 3.7.0, added a system spec and removed puma gem and after of setting in config.before(:suite) { Capybara.server = :webrick } The spec worked as expected. |
@guilleiguaran any idea when that'll be released? And will it be a minor or patch level increment. |
@guilleiguaran thanks for this. I was just trying out a system test with A 5.1 backport would be much appreciated, as it would let my tests more closely match production. |
* Fix puma loading in Rails 5.1 * Prevent system tests loading without capybara * Allow rescuing exceptions for system test * Fix rubocop lints
No description provided.