Skip to content

Commit

Permalink
Merge pull request capistrano#92 from forward/mocha
Browse files Browse the repository at this point in the history
Fixed test error on `ruby- 1.9.2` due to `mocha`.
  • Loading branch information
leehambley committed Sep 20, 2011
2 parents f5a57ec + e635111 commit 53af42b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/command_test.rb
Expand Up @@ -205,6 +205,7 @@ def test_process_should_loop_until_all_channels_are_closed
new_channel = Proc.new do |times|
ch = mock("channel")
returns = [false] * (times-1)
ch.stubs(:to_ary)
ch.stubs(:[]).with(:closed).returns(*(returns + [true]))
ch.expects(:[]).with(:status).returns(0)
ch
Expand Down

0 comments on commit 53af42b

Please sign in to comment.