aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorJamis Buck <jamis@37signals.com>2013-01-08 12:02:11 -0700
committerJamis Buck <jamis@37signals.com>2013-01-08 12:02:11 -0700
commit0121377cfb864e3a455280ff00531c4b066848bb (patch)
tree2253bc3d4812b5ae5ea3efeda53b2d3b2e584309 /actionpack/test
parent70e684a681352e95fb990747ef6dd7183da333a8 (diff)
downloadrails-0121377cfb864e3a455280ff00531c4b066848bb.tar.gz
rails-0121377cfb864e3a455280ff00531c4b066848bb.tar.bz2
rails-0121377cfb864e3a455280ff00531c4b066848bb.zip
evaluate the dependency blocks at the instance level, not class level
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/caching_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb
index eb5eeb0423..ca86837a2c 100644
--- a/actionpack/test/controller/caching_test.rb
+++ b/actionpack/test/controller/caching_test.rb
@@ -306,11 +306,11 @@ class ViewCacheDependencyTest < ActionController::TestCase
end
def test_view_cache_dependencies_are_empty_by_default
- assert NoDependenciesController.view_cache_dependencies.empty?
+ assert NoDependenciesController.new.view_cache_dependencies.empty?
end
def test_view_cache_dependencies_are_listed_in_declaration_order
- assert_equal %w(trombone flute), HasDependenciesController.view_cache_dependencies
+ assert_equal %w(trombone flute), HasDependenciesController.new.view_cache_dependencies
end
end