I’ve got a rails system test that is checking the current_path
after creating an object. In the test scenario the controller is doing a redirect_to
for a turbo_stream
response. I have an assertion that the current_path
is equal to the index path. However, current_path
is still equal to the new path causing the test to fail. Though, all my content expectations are passing.
Thoughts, on what I might be doing wrong?