diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-09-06 09:24:22 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-09-06 10:46:52 -0500 |
commit | 6fc518e2ec59ec00076aaca08b9e3df3baee54a3 (patch) | |
tree | 06eed70e27b789b25798a6d4b32a52d6d3edf9b4 /railties/test/application | |
parent | 6521cf3316ac5378d2b6019c303a003f527b7646 (diff) | |
download | rails-6fc518e2ec59ec00076aaca08b9e3df3baee54a3.tar.gz rails-6fc518e2ec59ec00076aaca08b9e3df3baee54a3.tar.bz2 rails-6fc518e2ec59ec00076aaca08b9e3df3baee54a3.zip |
config.action_controller.perform_caching isn't used anymore in assets pipeline, instead we are using config.assets.digest now
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/assets_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/railties/test/application/assets_test.rb b/railties/test/application/assets_test.rb index 3c7d178d37..8a5cafe71b 100644 --- a/railties/test/application/assets_test.rb +++ b/railties/test/application/assets_test.rb @@ -64,6 +64,15 @@ module ApplicationTests end end + test "asset pipeline should use a Sprockets::Index when config.assets.digest is true" do + app_file "config/initializers/digest.rb", "Rails.application.config.assets.digest = true" + app_file "config/initializers/caching.rb", "Rails.application.config.action_controller.perform_caching = false" + ENV["RAILS_ENV"] = "production" + require "#{app_path}/config/environment" + + assert_equal Sprockets::Index, Rails.application.assets.class + end + test "precompile creates a manifest file with all the assets listed" do app_file "app/assets/stylesheets/application.css.erb", "<%= asset_path('rails.png') %>" app_file "app/assets/javascripts/application.js", "alert();" |