提交 39928c8d 编写于 作者: G Guillermo Iguaran

Minor test refactoring: Use add_to_env instead of an initializer

上级 8815de7b
......@@ -50,7 +50,7 @@ class ::PostsController < ActionController::Base ; end
end
test "assets aren't concatened when compile is true is on and debug_assets params is true" do
app_file "config/initializers/compile.rb", "Rails.application.config.assets.compile = true"
add_to_env_config "production", "config.assets.compile = true"
ENV["RAILS_ENV"] = "production"
require "#{app_path}/config/environment"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册