aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorJeroen Jacobs <info@jeroenj.be>2011-06-22 18:00:46 +0200
committerJeroen Jacobs <info@jeroenj.be>2011-06-22 18:00:46 +0200
commit93ff522120a916f49133d2f8539d904b46f8d539 (patch)
tree330f1fb060c167c66d2854e98676a5539b71ee87 /actionpack/test/controller
parent791127eee45ee53b3ee897c647eceff17056c3e8 (diff)
downloadrails-93ff522120a916f49133d2f8539d904b46f8d539.tar.gz
rails-93ff522120a916f49133d2f8539d904b46f8d539.tar.bz2
rails-93ff522120a916f49133d2f8539d904b46f8d539.zip
Tests only after filters in cache sweepers
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/filters_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/controller/filters_test.rb b/actionpack/test/controller/filters_test.rb
index 9e44e8e088..d5e3da4d88 100644
--- a/actionpack/test/controller/filters_test.rb
+++ b/actionpack/test/controller/filters_test.rb
@@ -530,6 +530,11 @@ class FilterTest < ActionController::TestCase
assert sweeper.before(TestController.new)
end
+ def test_after_method_of_sweeper_should_always_return_nil
+ sweeper = ActionController::Caching::Sweeper.send(:new)
+ assert_nil sweeper.after(TestController.new)
+ end
+
def test_non_yielding_around_filters_not_returning_false_do_not_raise
controller = NonYieldingAroundFilterController.new
controller.instance_variable_set "@filter_return_value", true