Probably not an issue, more a feature request, but...
I try to test a action that is returning json and I see no way doing that. My quick fix is
result = action(:solve, {"some_params" => "foo"}).resp_body
|> Poison.decode
|> case do
{:ok, data} -> data
end
expect(result.solution) |> to(eq [true, true, false])
There is prabably a better way to do that, but how?
Probably not an issue, more a feature request, but...
I try to test a action that is returning json and I see no way doing that. My quick fix is
There is prabably a better way to do that, but how?