aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-12-05 16:29:59 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-12-05 16:30:44 -0200
commit59f6b99fc3a02f272d7ba4828317ebd8bd5a362f (patch)
treea63c2567aeeead08819bac046c824db0053c2591
parentff08d31e2e7d3f8d79d0d987d698d753a01ebc47 (diff)
downloadrails-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
-rw-r--r--railties/test/application/configuration_test.rb8
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