Closed MainShayne233 closed 7 years ago
Thank you for loving maru ❤️
You can replace the last two lines with json_response
which defined at https://github.com/elixir-maru/maru/blob/master/lib/maru/test.ex#L152
And if you test all your endpoint with the same way, just move your helper method as YouHelperModule.post_and_respond/2
within test_helper.exs
, and then import the module in all your test files.
I haven't make one by default because I think different people test different things, and a test module could be made very easy.
Perfect! Exactly what I was going for :).
First off I just want to say I absolutely love this framework with all my heart.
Currently I am using this helper to test my POST requests
This is obviously fine, but I imagine there is a better way.