You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
by adding some debugging statements to ActionView::ViewPaths I confirmed that paths are set to empty array for the failing scenario
by following the backtrace I discovered that the RSpec::Rails::ViewRendering may be involved and that enabling render_views can be used as a workaround
The text was updated successfully, but these errors were encountered:
Whats weird is this only happens when you define the hook in config, if you do it in the example group itself it works as expected, similarly if you skip directly in the example. This suggests that prehaps the hook ordering is somehow at fault but I can't see how skipping one example affects the other
What Ruby, Rails and RSpec versions are you using?
Ruby version: ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
Rails version: 7.0.3
RSpec version:
Observed behaviour
When:
skip
for the first testThen:
When running the failing test independently, it passes:
Expected behaviour
In both scenarios the second test should pass, or at least behave consistently
Can you provide an example app?
Commands to run are included in repo's
README.md
What I discovered
render_views
can be used as a workaroundThe text was updated successfully, but these errors were encountered: