2
,我想包括位于此处的模块: 测试/单位/助理/ test_helpers.rb未初始化的常量,而试图包括帮助模块
的样子:
module TestHelpers
end
我想把它列入: 测试/单元/应用/模型/ abc.rb
class Abc < ActiveSupport::TestCase
include TestHelpers
end
提供了以下错误:
Error executing test/unit/app/models/abc.rb uninitialized constant Abc::TestHelpers
任何想法,为什么会发生这种情况?
帮助程序不包含在ruby包含树中......用':: require'包含它 –