mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix reported regression rails/sprockets-rails#265
We can prevent the UglifierCompressor from being instantiated prematurely by setting precompile to an empty array in this test.
This commit is contained in:
parent
ff47e45d14
commit
4bc2469156
1 changed files with 1 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue