Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为这个gem 的生成器方法编写一些测试并得到这个错误。我想知道我在配置中缺少什么来正确测试它。它似乎与在此方法中加载 rails 配置有关:
def use_coffeescript? ::Rails.configuration.app_generators.rails[:javascript_engine] == :coffee end
为简洁起见,这里是 diff。提前感谢您的任何建议/链接/等!
您可能需要将此添加到您的 spec_helper:
require 'action_controller'