From 25ea18aa150c7eb26fd09ab6ab26eb455fac7ff0 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Mon, 4 Sep 2006 03:17:32 +0000 Subject: [PATCH] Fix deprecation warnings in verification tests. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4963 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/controller/verification_test.rb | 12 ++++++------ 1 file 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