diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-05 19:02:55 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-05 19:02:55 -0200 |
commit | 3fcbc7ad32cf209685485871a4a49c487d131c0d (patch) | |
tree | 9bba6fd2be3fbd86f729478cd5e372cb26458def /railties | |
parent | 3eb4f5428edba607b583b59602ffebf08b8ea04f (diff) | |
parent | fe13e711627ffe304a85b711cd16d10b1d2e29f4 (diff) | |
download | rails-3fcbc7ad32cf209685485871a4a49c487d131c0d.tar.gz rails-3fcbc7ad32cf209685485871a4a49c487d131c0d.tar.bz2 rails-3fcbc7ad32cf209685485871a4a49c487d131c0d.zip |
Merge branch 'av-loading-order'
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/configuration_test.rb | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index 722c940d8e..b3fbceb0dc 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -494,7 +494,7 @@ module ApplicationTests require "#{app_path}/config/environment" require 'action_view/base' - assert ActionView::Resolver.caching? + assert_equal true, ActionView::Resolver.caching? end test "config.action_view.cache_template_loading without cache_classes default" do @@ -502,7 +502,7 @@ module ApplicationTests require "#{app_path}/config/environment" require 'action_view/base' - assert !ActionView::Resolver.caching? + assert_equal false, ActionView::Resolver.caching? end test "config.action_view.cache_template_loading = false" do @@ -513,7 +513,7 @@ module ApplicationTests require "#{app_path}/config/environment" require 'action_view/base' - assert !ActionView::Resolver.caching? + assert_equal false, ActionView::Resolver.caching? end test "config.action_view.cache_template_loading = true" do @@ -524,7 +524,21 @@ module ApplicationTests require "#{app_path}/config/environment" require 'action_view/base' - assert ActionView::Resolver.caching? + assert_equal true, ActionView::Resolver.caching? + end + + test "config.action_view.cache_template_loading with cache_classes in an environment" do + build_app(initializers: true) + add_to_env_config "development", "config.cache_classes = false" + + # These requires are to emulate an engine loading Action View before the application + require 'action_view' + require 'action_view/railtie' + require 'action_view/base' + + require "#{app_path}/config/environment" + + assert_equal false, ActionView::Resolver.caching? end test "config.action_dispatch.show_exceptions is sent in env" do |