【发布时间】:2017-07-25 11:11:08
【问题描述】:
我试图在测试中使用帮助器来完成任务。我的文件夹结构是这样的:
config/
lib/
test/
test/test_helper.exs
test/provider_test/(the test files are here)
现在我想做的就是这个
config/
lib/
test/
test/test_helper.exs
test/provider_test/(the test files are here)
test/provider_test/helpers/(the helpers files... more or less, one for helper)
我尝试使用它(在测试中):
HelperModuler.calling_function(args)
但我收到此错误:
(UndefinedFunctionError) undefined function HelperModuler.calling_function/1 (module HelperModuler is not available)
【问题讨论】: