Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed test error on ruby 1.9.2 due to mocha

  • Loading branch information...
commit e635111171675160d84b1bcec16e992bbca187d6 1 parent 0a9bcab
@andrew andrew authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  test/command_test.rb
View
1  test/command_test.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.