diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-05 16:29:59 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-05 16:30:44 -0200 |
commit | 59f6b99fc3a02f272d7ba4828317ebd8bd5a362f (patch) | |
tree | a63c2567aeeead08819bac046c824db0053c2591 /railties/test | |
parent | ff08d31e2e7d3f8d79d0d987d698d753a01ebc47 (diff) | |
download | rails-59f6b99fc3a02f272d7ba4828317ebd8bd5a362f.tar.gz rails-59f6b99fc3a02f272d7ba4828317ebd8bd5a362f.tar.bz2 rails-59f6b99fc3a02f272d7ba4828317ebd8bd5a362f.zip |
Assert the singleton instead of to truthy/falsy
This will avoid false positives where caching? is nil and should be
false
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/configuration_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index a8443dcb88..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,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 with cache_classes in an environment" do |