Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 7703

Show
Ignore:
Timestamp:
10/01/07 01:56:25 (1 year ago)
Author:
nzkoz
Message:

Silence mocha warnings

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1-2-stable/actionpack/test/controller/integration_test.rb

    r7319 r7703  
    5757    @session.expects(:get).with(path,args) 
    5858 
    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) 
    6160    @session.expects(:follow_redirect!).times(2) 
    6261 
     
    7069    @session.expects(:post).with(path,args) 
    7170 
    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) 
    7472    @session.expects(:follow_redirect!).times(2) 
    7573