-
Notifications
You must be signed in to change notification settings - Fork 64
Closed
Description
Hi, this enhancement can also be considered as an issue
There is a new RuboCop Rails cop that checks for the usage of parsed_body rubocop/rubocop-rails#863
Ref: https://api.rubyonrails.org/classes/ActionDispatch/TestResponse.html#method-i-parsed_body
I've noticed that out of the box JSON API does not convert parsed_body into a Hash
Compatibility has been added in Rails 6.0 via rails/rails#34717
Expected
response.parsed_body.class
Hash
Actual
response.parsed_body.class
String
Metadata
Metadata
Assignees
Labels
No labels