diff options
author | Arthur Neves <arthurnn@gmail.com> | 2015-04-26 12:55:05 -0400 |
---|---|---|
committer | Arthur Neves <arthurnn@gmail.com> | 2015-04-26 12:55:05 -0400 |
commit | 64114b66d2b363187f023e2108b559436883bdf1 (patch) | |
tree | a19de5a654773940896f3e67d21150573abd71ac /railties/test/application | |
parent | d023f98497209aa35b6816474c775343f0367dd7 (diff) | |
download | rails-64114b66d2b363187f023e2108b559436883bdf1.tar.gz rails-64114b66d2b363187f023e2108b559436883bdf1.tar.bz2 rails-64114b66d2b363187f023e2108b559436883bdf1.zip |
Need to add config.assets.compile=true to access `.assets`
sprockets-rails will only add `Rails.application.assets` if compile is
no false. See change on sprockets-rails
https://github.com/rails/sprockets-rails/commit/d7c7ee19991c565eb77ee143be2d009ba4472122
Diffstat (limited to 'railties/test/application')
-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 f1a146519b..1e2a9ba040 100644 --- a/railties/test/application/assets_test.rb +++ b/railties/test/application/assets_test.rb @@ -191,6 +191,7 @@ module ApplicationTests test "asset pipeline should use a Sprockets::Index when config.assets.digest is true" do add_to_config "config.action_controller.perform_caching = false" + add_to_env_config "production", "config.assets.compile = true" ENV["RAILS_ENV"] = "production" require "#{app_path}/config/environment" |