diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-06-08 23:25:55 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-09 09:51:05 +0200 |
commit | f48aa14bf43fb103e5d128151061549ba6bb8c23 (patch) | |
tree | 03be65bf084ab1f02ebc699880c0c01f9664f09e /actionpack/test | |
parent | df40dbe6f13c6799e972b20dcc1fbf11f0a02c61 (diff) | |
download | rails-f48aa14bf43fb103e5d128151061549ba6bb8c23.tar.gz rails-f48aa14bf43fb103e5d128151061549ba6bb8c23.tar.bz2 rails-f48aa14bf43fb103e5d128151061549ba6bb8c23.zip |
Better test for ticket [#3914 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/filters_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/actionpack/test/controller/filters_test.rb b/actionpack/test/controller/filters_test.rb index 25b78124e3..14f1bd797a 100644 --- a/actionpack/test/controller/filters_test.rb +++ b/actionpack/test/controller/filters_test.rb @@ -445,6 +445,17 @@ class FilterTest < ActionController::TestCase end + class ::AppSweeper < ActionController::Caching::Sweeper; end + class SweeperTestController < ActionController::Base + cache_sweeper :app_sweeper + def show + render :text => 'hello world' + end + end + def test_sweeper_should_not_block_rendering + response = test_process(SweeperTestController) + assert_equal 'hello world', response.body + end def test_before_method_of_sweeper_should_always_return_true sweeper = ActionController::Caching::Sweeper.send(:new) |