3 ms·
I think this is a good example of Spec being used to guide the solution http://gigasquidsoftware.com/blog/2016/05/29/one-fish-spec-fish/ http://gigasquidsoftwar
by yogthos 9y ago
I think this is a good example of Spec being used to guide the solution http://gigasquidsoftware.com/blog/2016/05/29/one-fish-spec-fish/ http://gigasquidsoftware.com/blog/2016/05/29/one-fish-spec-f...
I don't think Spec alone removes the need for mocking, using Clean Architecture is probably more important for that
https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-architecture.html https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-arc...
If you structure your app so that any IO lives at the edges, it becomes possible to test all your business logic without mocking. Spec can help at that point by providing generative testing.
Since Spec