Skip to content

Commit

Permalink
Tests only after filters in cache sweepers
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen Jacobs committed Jun 23, 2011
1 parent 8467ea3 commit 8ebc17f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions actionpack/test/controller/filters_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,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
Expand Down

0 comments on commit 8ebc17f

Please sign in to comment.