Closed tagliala closed 1 year ago
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
parsed_body
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
response.parsed_body.class Hash
response.parsed_body.class String
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#863Ref: 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 HashCompatibility has been added in Rails 6.0 via rails/rails#34717
Expected
Actual