Changeset 7703
- Timestamp:
- 10/01/07 01:56:25 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1-2-stable/actionpack/test/controller/integration_test.rb
r7319 r7703 57 57 @session.expects(:get).with(path,args) 58 58 59 redirects = [true, true, false] 60 @session.stubs(:redirect?).returns(lambda { redirects.shift }) 59 @session.stubs(:redirect?).returns(true).then.returns(true).then.returns(false) 61 60 @session.expects(:follow_redirect!).times(2) 62 61 … … 70 69 @session.expects(:post).with(path,args) 71 70 72 redirects = [true, true, false] 73 @session.stubs(:redirect?).returns(lambda { redirects.shift }) 71 @session.stubs(:redirect?).returns(true).then.returns(true).then.returns(false) 74 72 @session.expects(:follow_redirect!).times(2) 75 73