-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
System specs broken with Rails 6.0.1+ #2327
Comments
Thanks for the detail issue and the example app that will help us to tackle this. I'm gonna try to look at it today. |
Can you try the branch in #2329? I think thats the fix required. |
Hm, I just tried your reproduction without |
@JonRowe I added a spec with I've also updated my example app to use |
You should find that |
What Ruby, Rails and RSpec versions are you using?
Ruby version: 2.6.5p114
Rails version: Rails 6.0.1.rc1
RSpec version: RSpec 3.9 (rspec-rails 4.0.0)
Observed behaviour
Starting with Rails 6.0.1.rc1 urls in system specs are being generated by Rails url helpers for host
www.example.com
instead ofhttp://127.0.0.1
as was the case in Rails 6.0.0 and before. Due to this change, all system specs fail with timeout errors.Specifically this line and commit introduced this change in RSpec system specs behavior.
Expected behaviour
Urls should be generated with host set to
http://127.0.0.1
.Can you provide an example app?
https://github.com/nnc/rspec_system_specs_bug
Test app includes both a system test and a system spec, just to show that system tests continue working fine before and after the offending commit.
This issue is the same in all Rails versions after 6.0.1.rc1 so I didn't include those. But there is a commit in test app with Rails 6.0.0 (last Rails release before rails/rails@ea77dbf) where system spec is passing.
The text was updated successfully, but these errors were encountered: