diff options
author | wycats <wycats@gmail.com> | 2010-06-08 18:10:27 -0400 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-06-08 18:10:27 -0400 |
commit | df40dbe6f13c6799e972b20dcc1fbf11f0a02c61 (patch) | |
tree | d3daec753c2e55c859c63053d8411306bb11d603 /actionpack/test/controller | |
parent | 6ebc7c8ee6de0f3f441a68baa6351416a6ac0a59 (diff) | |
parent | 5c9f27abaabba0d008ccd710ed1af5f6caa4e371 (diff) | |
download | rails-df40dbe6f13c6799e972b20dcc1fbf11f0a02c61.tar.gz rails-df40dbe6f13c6799e972b20dcc1fbf11f0a02c61.tar.bz2 rails-df40dbe6f13c6799e972b20dcc1fbf11f0a02c61.zip |
Merge branch 'master' of github.com:rails/rails
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/filters_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/controller/filters_test.rb b/actionpack/test/controller/filters_test.rb index d5704eba78..25b78124e3 100644 --- a/actionpack/test/controller/filters_test.rb +++ b/actionpack/test/controller/filters_test.rb @@ -445,6 +445,12 @@ class FilterTest < ActionController::TestCase end + + def test_before_method_of_sweeper_should_always_return_true + sweeper = ActionController::Caching::Sweeper.send(:new) + assert sweeper.before(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 |