Permalink
Browse files

Better test for ticket [#3914 state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
Neeraj Singh authored and josevalim committed Jun 9, 2010
1 parent df40dbe commit f48aa14bf43fb103e5d128151061549ba6bb8c23
Showing with 11 additions and 0 deletions.
  1. +11 −0 actionpack/test/controller/filters_test.rb
@@ -445,6 +445,17 @@ def filter_three
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)

0 comments on commit f48aa14

Please sign in to comment.