Hello, I have a strange warning when running my tests:
warning: function Parker.Test.FakeHTTPipe.get/2 is undefined (module Parker.Test.FakeHTTPipe is not available)
lib/parker/adapters/httpipe.ex:6
I’ve build a “fake” http library that should be used in my tests in substitution to HTTPipe.
This library is located under test/support and is loaded just before running the tests in test_helper.exs
Path.join([File.cwd!, "test", "support", "*"])
|> Path.wildcard
|> Enum.map(fn(file) -> Code.load_file(file) end)
and called by the app using config/test.exs and a variable that points to the configuration (pretty much the same as in http://blog.plataformatec.com.br/2015/10/mocks-and-explicit-contracts/)
Am I supposed to Code.load_file somewhere else to make that warning disappear?
Thanks in advance, ngw