Closed casperisfine closed 2 years ago
We need to pass as: :json otherwise AC::TestCase will simulate www-form-encoded payloads, which don't support boolean and other rich JSON types.
as: :json
That bing said, this change still isn't quite representative of what happens in production, but it should be good enough.
FYI @mikailkarimi
We need to pass
as: :json
otherwise AC::TestCase will simulate www-form-encoded payloads, which don't support boolean and other rich JSON types.That bing said, this change still isn't quite representative of what happens in production, but it should be good enough.
FYI @mikailkarimi