This happens for 2.0.2 and edge. Did not test others.
follow_redirect! is returning a response of nil rather than the expected redirect headers. Stepping through the code, it seems that last_instantiation (integration.rb) is not set properly somewhere along the way.
In the test shown here, it seems to be triggered by something that make_resourceful is doing, but I have not dug into the details there.
The attached patches demonstrate the problem, and include a fix.
All tests pass w/ the fix, and it seems reasonable, but I don't fully grok why last_instantiation would be using
= instead of = in the first place.
Attachments
Change History
Download in other formats:
|