{"id":4914,"date":"2015-10-14T12:44:42","date_gmt":"2015-10-14T15:44:42","guid":{"rendered":"http:\/\/blog.plataformatec.com.br\/?p=4914"},"modified":"2019-11-21T17:44:44","modified_gmt":"2019-11-21T19:44:44","slug":"mocks-and-explicit-contracts","status":"publish","type":"post","link":"https:\/\/blog.plataformatec.com.br\/2015\/10\/mocks-and-explicit-contracts\/","title":{"rendered":"Mocks and explicit contracts"},"content":{"rendered":"

UPDATE: Almost 2 years later we have released a tiny library called Mox<\/a> for Elixir that follows the guidelines written in this article.<\/p>\n

A couple days ago I expressed my thoughts regarding mocks on Twitter:<\/p>\n

\n

Mocks\/stubs do not remove the need to define an explicit interface between your components (modules, classes, whatever). [1\/4]<\/p>\n

\u2014 Jos\u00e9 Valim (@josevalim) September 9, 2015<\/a><\/p><\/blockquote>\n