From c0c001839c68c1dc9c17e2f33529fe9899188c48 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Wed, 13 Jun 2007 00:55:11 +0000 Subject: Take advantage of Mocha support for sequenced returns. Closes #8639 [Josh Peek] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7010 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/controller/integration_test.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'actionpack/test/controller') diff --git a/actionpack/test/controller/integration_test.rb b/actionpack/test/controller/integration_test.rb index 7ef7865df4..6212109c02 100644 --- a/actionpack/test/controller/integration_test.rb +++ b/actionpack/test/controller/integration_test.rb @@ -54,8 +54,7 @@ class SessionTest < Test::Unit::TestCase @session.expects(:get).with(path,args) - redirects = [true, true, false] - @session.stubs(:redirect?).returns(lambda { redirects.shift }) + @session.stubs(:redirect?).returns(true, true, false) @session.expects(:follow_redirect!).times(2) @session.stubs(:status).returns(200) @@ -67,8 +66,7 @@ class SessionTest < Test::Unit::TestCase @session.expects(:post).with(path,args) - redirects = [true, true, false] - @session.stubs(:redirect?).returns(lambda { redirects.shift }) + @session.stubs(:redirect?).returns(true, true, false) @session.expects(:follow_redirect!).times(2) @session.stubs(:status).returns(200) -- cgit v1.2.3