From e537de00d806368f21cc22bde118fb90c1b6fe2d Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Wed, 27 Sep 2006 04:55:44 +0000 Subject: Fix bug that kept any before_filter except the first one from being able to halt the before_filter chain. [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/controller/verification_test.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionpack/test/controller/verification_test.rb') diff --git a/actionpack/test/controller/verification_test.rb b/actionpack/test/controller/verification_test.rb index ee2947ae98..c5ff175d1b 100644 --- a/actionpack/test/controller/verification_test.rb +++ b/actionpack/test/controller/verification_test.rb @@ -3,6 +3,7 @@ require File.dirname(__FILE__) + '/../abstract_unit' class VerificationTest < Test::Unit::TestCase class TestController < ActionController::Base verify :only => :guarded_one, :params => "one", + :add_flash => { :error => 'unguarded' }, :redirect_to => { :action => "unguarded" } verify :only => :guarded_two, :params => %w( one two ), @@ -103,6 +104,7 @@ class VerificationTest < Test::Unit::TestCase def test_guarded_one_without_prereqs get :guarded_one assert_redirected_to :action => "unguarded" + assert_equal 'unguarded', flash[:error] end def test_guarded_with_flash_with_prereqs -- cgit v1.2.3