From e635111171675160d84b1bcec16e992bbca187d6 Mon Sep 17 00:00:00 2001 From: Andrew Nesbitt Date: Tue, 23 Aug 2011 21:58:11 +0100 Subject: [PATCH] Fixed test error on ruby 1.9.2 due to mocha --- test/command_test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/command_test.rb b/test/command_test.rb index 67978d2b5..19653af55 100644 --- a/test/command_test.rb +++ b/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