diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-04 03:17:32 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-04 03:17:32 +0000 |
commit | 25ea18aa150c7eb26fd09ab6ab26eb455fac7ff0 (patch) | |
tree | 675cdcafae9fd06e498f340516fdf1d71498130a /actionpack/test | |
parent | c3a52523ceaf4aab819c7c5da748d552f9cb3f99 (diff) | |
download | rails-25ea18aa150c7eb26fd09ab6ab26eb455fac7ff0.tar.gz rails-25ea18aa150c7eb26fd09ab6ab26eb455fac7ff0.tar.bz2 rails-25ea18aa150c7eb26fd09ab6ab26eb455fac7ff0.zip |
Fix deprecation warnings in verification tests.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4963 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/verification_test.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/actionpack/test/controller/verification_test.rb b/actionpack/test/controller/verification_test.rb index a3a913d42f..ee2947ae98 100644 --- a/actionpack/test/controller/verification_test.rb +++ b/actionpack/test/controller/verification_test.rb @@ -9,7 +9,7 @@ class VerificationTest < Test::Unit::TestCase :redirect_to => { :action => "unguarded" } verify :only => :guarded_with_flash, :params => "one", - :add_flash => { "notice" => "prereqs failed" }, + :add_flash => { :notice => "prereqs failed" }, :redirect_to => { :action => "unguarded" } verify :only => :guarded_in_session, :session => "one", @@ -46,15 +46,15 @@ class VerificationTest < Test::Unit::TestCase end def guarded_in_session - render :text => "#{@session["one"]}" + render :text => "#{session["one"]}" end def multi_one - render :text => "#{@session["one"]}:#{@session["two"]}" + render :text => "#{session["one"]}:#{session["two"]}" end def multi_two - render :text => "#{@session["two"]}:#{@session["one"]}" + render :text => "#{session["two"]}:#{session["one"]}" end def guarded_by_method @@ -108,13 +108,13 @@ class VerificationTest < Test::Unit::TestCase def test_guarded_with_flash_with_prereqs get :guarded_with_flash, :one => "here" assert_equal "here", @response.body - assert_flash_empty + assert flash.empty? end def test_guarded_with_flash_without_prereqs get :guarded_with_flash assert_redirected_to :action => "unguarded" - assert_flash_equal "prereqs failed", "notice" + assert_equal "prereqs failed", flash[:notice] end def test_guarded_two_with_prereqs |