summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklós Fazekas <mfazekas@szemafor.com>2016-03-05 18:43:48 +0100
committerMiklós Fazekas <mfazekas@szemafor.com>2016-03-05 18:43:48 +0100
commit7b72619097f7ba0071762bae4fea1cd31ebd514b (patch)
treee290754feada137fe84b9c5035d86c8a4416f258
parentd8c819f229d045d1bf20901a2aab6f45fe5ee02e (diff)
parent2ab86ae73b6689a539f7925ca4c6d9d3bf435f0f (diff)
downloadnet-ssh-7b72619097f7ba0071762bae4fea1cd31ebd514b.tar.gz
Merge pull request #321 from mfazekas/older-testunit
Suppor older testunit
-rw-r--r--test/connection/test_channel.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/connection/test_channel.rb b/test/connection/test_channel.rb
index 37bda2d..938d2ba 100644
--- a/test/connection/test_channel.rb
+++ b/test/connection/test_channel.rb
@@ -263,9 +263,13 @@ module Connection
def test_send_channel_request_should_wait_for_remote_id
channel.expects(:remote_id).times(1).returns(nil)
- assert_raises("Channel open not yet confirmed, please call send_channel_request(or exec) from block of open_channel") do
+ msg = nil
+ begin
channel.send_channel_request("exec", :string, "ls")
+ rescue RuntimeError => e
+ msg = e.message
end
+ assert_equal "Channel open not yet confirmed, please call send_channel_request(or exec) from block of open_channel", msg
assert channel.pending_requests.empty?
end