stubbing dont working with Alamofire manager
andymedvedev opened this issue · comments
Andrey Medvedev commented
Using the alamofire manager in test
https://gist.github.com/andertsk/a72f65458542149f57f22974d63b312d
results into failure. But if i use Alamofire.request
- it's Ok. But i need to test with manager.
Kyle Fuller commented
Hi @andertsk, the problem here is that you created a manager before the Mockingjay stub was added, thus the manager wasn't using Mockingjay.
I've made some changes in d6ccdc6 and released Mockingjay 1.2.1 which allows you to create a manager before registering stubs. Let me know if you're having any problems with this.
-Kyle