1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
Description: disable failing tests with mocha 1.2.1
due to visibility issues of created methods
(exec is private)
Forwarded: not-needed
Author: Cédric Boutillier <boutil@debian.org>
Last-Update: 2017-07-08
--- a/test/session_actions_test.rb
+++ b/test/session_actions_test.rb
@@ -79,14 +79,14 @@
assert_equal [c1, c2], channel.channels
end
- def test_exec_should_raise_exception_if_channel_cannot_exec_command
+ def est_exec_should_raise_exception_if_channel_cannot_exec_command
c = { :host => "host" }
@session.expects(:open_channel).yields(c).returns(c)
c.expects(:exec).with('something').yields(c, false)
assert_raises(RuntimeError) { @session.exec("something") }
end
- def test_exec_with_block_should_pass_data_and_extended_data_to_block
+ def est_exec_with_block_should_pass_data_and_extended_data_to_block
c = { :host => "host" }
@session.expects(:open_channel).yields(c).returns(c)
c.expects(:exec).with('something').yields(c, true)
@@ -100,7 +100,7 @@
assert_equal({:stdout => "stdout", :stderr => "stderr"}, results)
end
- def test_exec_without_block_should_write_data_and_extended_data_lines_to_stdout_and_stderr
+ def est_exec_without_block_should_write_data_and_extended_data_lines_to_stdout_and_stderr
c = { :host => "host" }
@session.expects(:open_channel).yields(c).returns(c)
c.expects(:exec).with('something').yields(c, true)
@@ -114,7 +114,7 @@
@session.exec("something")
end
- def test_exec_should_capture_exit_status_of_process
+ def est_exec_should_capture_exit_status_of_process
c = { :host => "host" }
@session.expects(:open_channel).yields(c).returns(c)
c.expects(:exec).with('something').yields(c, true)
|