Skip to content

Commit

Permalink
Silence mocha warnings
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-stable@7703 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
NZKoz committed Oct 1, 2007
1 parent 8943da4 commit fe1ee81
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions actionpack/test/controller/integration_test.rb
Expand Up @@ -56,8 +56,7 @@ def test_get_via_redirect

@session.expects(:get).with(path,args)

redirects = [true, true, false]
@session.stubs(:redirect?).returns(lambda { redirects.shift })
@session.stubs(:redirect?).returns(true).then.returns(true).then.returns(false)
@session.expects(:follow_redirect!).times(2)

@session.stubs(:status).returns(200)
Expand All @@ -69,8 +68,7 @@ def test_post_via_redirect

@session.expects(:post).with(path,args)

redirects = [true, true, false]
@session.stubs(:redirect?).returns(lambda { redirects.shift })
@session.stubs(:redirect?).returns(true).then.returns(true).then.returns(false)
@session.expects(:follow_redirect!).times(2)

@session.stubs(:status).returns(200)
Expand Down

0 comments on commit fe1ee81

Please sign in to comment.