-
-
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
Failing rspec test when using stub_template with Rails 6.1 #2485
Comments
Previously in Rails 6.0,
The commit in rails actionview that changes |
FYI, I'm using the following workaround to get tests to pass until a proper fix is released:
|
Thanks a lot @glennakamura for the detailed report. Would you like to make a patch? I think we should clear cache in the after hook.
|
What Ruby, Rails and RSpec versions are you using?
Ruby version: 3.0.0
Rails version: 6.1.3
RSpec version: 3.10
Observed behaviour
Tests using a previously stubbed template fail if another test clears the view cache.
Expected behaviour
All tests pass. (works with Rails 6.0)
Can you provide an example app?
Example app: https://github.com/glennakamura/rspec_stub_template_failure.git
Expect
bundle exec rspec
to pass but fails with Rails 6.1The text was updated successfully, but these errors were encountered: