Is it possible to stub multiple times within a test using req?
I am doing
Req.Test.stub(Wrapper, &Req.Test.json(&1, %{"indices" => %{}}))
Req.Test.stub(Wrapper, &Req.Test.json(&1, %{"acknowledged" => true}))
but it’s only picking up the very last stub where as in module, there are multiple HTTP calls let say 5 and every call expecting something.
Is it possible to stub it in a way that it can justify each request?