rails-forward_compatible_controller_tests
rails-forward_compatible_controller_tests copied to clipboard
Skipping calls with a format?
With raise_exception set, I had a bunch of controllers that weren't erroring out as I expected. I found this code that seems to assume that if it specifies a format, even if it's something like :json, that it won't treat it as an old method.
It looks like it was deliberately added as part of #12, but there's no explanation of the exclusion. Is this a bug or is there a good reason I'm missing?
It would make sense to me for a presentational type, like :html, perhaps, but not for data payload types.
Similar path... but possibly a separate bug. Happy to file one off.
If params is a string (like a json payload), AND format is specified, then this bit makes request_params and string and then bombs on this other bit in the same method because that is clearly expecting a hash.