1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
We can prevent the UglifierCompressor from being instantiated prematurely by setting precompile to an empty array in this test.
This commit is contained in:
schneems 2015-07-29 18:16:57 -05:00
parent ff47e45d14
commit 4bc2469156

View file

@ -60,6 +60,7 @@ module ApplicationTests
test "assets do not require compressors until it is used" do
app_file "app/assets/javascripts/demo.js.erb", "<%= :alert %>();"
add_to_env_config "production", "config.assets.compile = true"
add_to_env_config "production", "config.assets.precompile = []"
ENV["RAILS_ENV"] = "production"
require "#{app_path}/config/environment"