I noticed when writing controller tests for POST and PUT that nothing was passing because all the validators failed regardless of the payload I submit. I also did not see a way to override the headers. This led me to discover the following bug. When I get time I'll submit a patch:
EndpointReqeust.mock method passes Router.prepare an empty hash
Which makes the Router.parseBody in poly/fxn set contentType to be an empty string
An example of test that fails on the built-in User model and UserController:
I noticed when writing controller tests for
POST
andPUT
that nothing was passing because all the validators failed regardless of the payload I submit. I also did not see a way to override the headers. This led me to discover the following bug. When I get time I'll submit a patch:EndpointReqeust.mock
method passesRouter.prepare
an empty hashWhich makes the
Router.parseBody
inpoly/fxn
setcontentType
to be an empty stringAn example of test that fails on the built-in
User
model andUserController
: