aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/verification_test.rb
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2006-09-27 04:55:44 +0000
committerRick Olson <technoweenie@gmail.com>2006-09-27 04:55:44 +0000
commite537de00d806368f21cc22bde118fb90c1b6fe2d (patch)
treef9ca6bac9e371238a10b385a1069576d26685cd8 /actionpack/test/controller/verification_test.rb
parent6a8dcc8a5bd9e8510c75d7a88a1072d88067aaa9 (diff)
downloadrails-e537de00d806368f21cc22bde118fb90c1b6fe2d.tar.gz
rails-e537de00d806368f21cc22bde118fb90c1b6fe2d.tar.bz2
rails-e537de00d806368f21cc22bde118fb90c1b6fe2d.zip
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
Diffstat (limited to 'actionpack/test/controller/verification_test.rb')
-rw-r--r--actionpack/test/controller/verification_test.rb2
1 files changed, 2 insertions, 0 deletions
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