0
我正在为此gem's生成器方法编写一些测试并获取此错误。我想知道我在配置中缺少什么来正确测试。这似乎是与装载轨道在此方法中配置:RSpec:未初始化的常量RSpec :: Rails :: ControllerExampleGroup :: ActionController(NameError)
def use_coffeescript?
::Rails.configuration.app_generators.rails[:javascript_engine] == :coffee
end
为了简洁起见,here is the diff。预先感谢任何建议/链接/等!