with_request_url
test helper does not work with request.fullpath
#1867
Labels
with_request_url
test helper does not work with request.fullpath
#1867
When components use
request.fullpath
instead ofrequest.path
the same test usingwith_request_url
will fail for one, but not for the other.Steps to reproduce
Component:
Test file:
Expected behavior
The test above should pass.
Actual behavior
The request's
fullpath
property seems to stick from the earlier request. The test fails, since the fullpath still contains the path from the earlier request. This does not reflect the actual behaviour of the app (in a more complex component, of course).It's easy to work around this issue, by splitting the test up in three different requests, but it might still be good to fix this - or document this issue somewhere.
Backtrace:
System configuration
Rails version: 7.0.8
Ruby version: 3.2.2
Gem version: 3.6.0
The text was updated successfully, but these errors were encountered: