mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Tests only after filters in cache sweepers
This commit is contained in:
parent
791127eee4
commit
93ff522120
1 changed files with 5 additions and 0 deletions
|
@ -530,6 +530,11 @@ class FilterTest < ActionController::TestCase
|
||||||
assert sweeper.before(TestController.new)
|
assert sweeper.before(TestController.new)
|
||||||
end
|
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
|
def test_non_yielding_around_filters_not_returning_false_do_not_raise
|
||||||
controller = NonYieldingAroundFilterController.new
|
controller = NonYieldingAroundFilterController.new
|
||||||
controller.instance_variable_set "@filter_return_value", true
|
controller.instance_variable_set "@filter_return_value", true
|
||||||
|
|
Loading…
Reference in a new issue