[DRE-commits] [ruby-net-ssh-multi] 01/03: Disable tests failing with Mocha 1.2 due to added visibility checks
Cédric Boutillier
boutil at moszumanska.debian.org
Sat Jul 8 15:57:44 UTC 2017
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-net-ssh-multi.
commit a97741693ef01dfd881c1bae781b67ad69f4bc08
Author: Cédric Boutillier <boutil at debian.org>
Date: Sat Jul 8 17:01:04 2017 +0200
Disable tests failing with Mocha 1.2 due to added visibility checks
---
debian/patches/failing_tests_mocha_1.2.patch | 44 ++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 45 insertions(+)
diff --git a/debian/patches/failing_tests_mocha_1.2.patch b/debian/patches/failing_tests_mocha_1.2.patch
new file mode 100644
index 0000000..a7e23ca
--- /dev/null
+++ b/debian/patches/failing_tests_mocha_1.2.patch
@@ -0,0 +1,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 at 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)
diff --git a/debian/patches/series b/debian/patches/series
index 67668df..3e2caec 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
require-timeout.patch
+failing_tests_mocha_1.2.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-net-ssh-multi.git
More information about the Pkg-ruby-extras-commits
mailing list