Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tests only after filters in cache sweepers

  • Loading branch information...
commit 93ff522120a916f49133d2f8539d904b46f8d539 1 parent 791127e
Jeroen Jacobs authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 actionpack/test/controller/filters_test.rb
View
5 actionpack/test/controller/filters_test.rb
@@ -530,6 +530,11 @@ def test_before_method_of_sweeper_should_always_return_true
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
Please sign in to comment.
Something went wrong with that request. Please try again.