Closed hamza3202 closed 6 years ago
Take a look at the encoder docs (http://stehno.com/ersatz/asciidoc/html5/#_encoders) - you are encoding a map but using Json in the body content of the expectation.
I can't test this now, but I suspect if you remove the 'as JSON' it will work. Please let me know either way.
Also, considering I work on HttpBuilder-NG I have to recommend you look at it (https://http-builder-ng.github.io/http-builder-ng/) as a replacement to the old unmaintained version.
Thanks for the suggestion.
I added
decoder(ContentType.APPLICATION_JSON, Decoders.parseJson)
and it worked. I got this from one of the test cases that you had written.
This simple spec is failing for me.
The output is