diff options
author | schneems <richard.schneeman@gmail.com> | 2015-07-29 18:16:57 -0500 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2015-07-29 20:12:56 -0500 |
commit | 4bc246915671a4766996be0ec9d6bd312c112d1f (patch) | |
tree | 67ee7eb13ec9542e4a1b3becf574fe52726ff1ec /railties/test | |
parent | ff47e45d14737ac20a69089a3c7f54cb7e8dc47a (diff) | |
download | rails-4bc246915671a4766996be0ec9d6bd312c112d1f.tar.gz rails-4bc246915671a4766996be0ec9d6bd312c112d1f.tar.bz2 rails-4bc246915671a4766996be0ec9d6bd312c112d1f.zip |
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.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/assets_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/test/application/assets_test.rb b/railties/test/application/assets_test.rb index 6952472ff5..ba2c27d8e8 100644 --- a/railties/test/application/assets_test.rb +++ b/railties/test/application/assets_test.rb @@ -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" |