-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON Test Serialization on DELETE endpoints Regression in 5.1.4 #30570
Comments
I believe you meant to put -2 in assert_difference. If I remove |
|
We have the same problem with 5.1.4.
|
@brandonhilkert I found that this is caused by a change in Rails allows 0.7.0 since #29859 |
This issue has been automatically marked as stale because it has not been commented on for at least three months. |
The issue is still present in the |
Perhaps this issue will be solved with rack/rack-test#223. |
Awesome 🎉 |
Steps to reproduce
We tried to update to
5.1.4
and 2 tests broke because of the following...Test app: https://github.com/brandonhilkert/bulk-destroy-test
Delete endpoints with supplied a supplied JSON payload are double serialized when using
as: :json
in the test.I added a bulk endpoint here: brandonhilkert/bulk-destroy-test@4cfb003
Expected behavior
Test should pass
Actual behavior
Test:
Removing
as: :json
causes the params to be properly serialized and test passes:System configuration
Rails version: 5.1.4
Ruby version: 2.4.1p111
The text was updated successfully, but these errors were encountered: