summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordelano <delano@delanotes.com>2014-02-01 11:09:36 -0500
committerdelano <delano@delanotes.com>2014-02-01 11:09:36 -0500
commit60d3da31d2f6ce1167f1bd4564000789da8d7859 (patch)
tree1e1f672cca5f093507eb42a8147fdc61858a5296
parent71491c0969fc7ec32a266d07460cea7ebde64fee (diff)
downloadnet-ssh-60d3da31d2f6ce1167f1bd4564000789da8d7859.tar.gz
Test fix for #129
-rw-r--r--test/authentication/test_agent.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/authentication/test_agent.rb b/test/authentication/test_agent.rb
index 5fc763b..1e24d5e 100644
--- a/test/authentication/test_agent.rb
+++ b/test/authentication/test_agent.rb
@@ -43,7 +43,7 @@ module Authentication
assert_equal Net::SSH::Transport::ServerVersion::PROTO_VERSION, buffer.read_string
s.return(SSH2_AGENT_VERSION_RESPONSE)
end
- assert_raises(NotImplementedError) { agent.negotiate! }
+ assert_raises(Net::SSH::Authentication::AgentNotAvailable) { agent.negotiate! }
end
def test_negotiate_should_raise_error_if_response_was_unexpected
@@ -51,7 +51,7 @@ module Authentication
assert_equal SSH2_AGENT_REQUEST_VERSION, type
s.return(255)
end
- assert_raises(Net::SSH::Authentication::AgentError) { agent.negotiate! }
+ assert_raises(Net::SSH::Authentication::AgentNotAvailable) { agent.negotiate! }
end
def test_negotiate_should_be_successful_with_expected_response
@@ -65,7 +65,7 @@ module Authentication
def test_identities_should_fail_if_SSH_AGENT_FAILURE_recieved
socket.expect do |s, type, buffer|
assert_equal SSH2_AGENT_REQUEST_IDENTITIES, type
- s.return(SSH_AGENT_FAILURE)
+ s.return(SSH_AGENT_FAILURE)
end
assert_raises(Net::SSH::Authentication::AgentError) { agent.identities }
end
@@ -73,7 +73,7 @@ module Authentication
def test_identities_should_fail_if_SSH2_AGENT_FAILURE_recieved
socket.expect do |s, type, buffer|
assert_equal SSH2_AGENT_REQUEST_IDENTITIES, type
- s.return(SSH2_AGENT_FAILURE)
+ s.return(SSH2_AGENT_FAILURE)
end
assert_raises(Net::SSH::Authentication::AgentError) { agent.identities }
end
@@ -81,7 +81,7 @@ module Authentication
def test_identities_should_fail_if_SSH_COM_AGENT2_FAILURE_recieved
socket.expect do |s, type, buffer|
assert_equal SSH2_AGENT_REQUEST_IDENTITIES, type
- s.return(SSH_COM_AGENT2_FAILURE)
+ s.return(SSH_COM_AGENT2_FAILURE)
end
assert_raises(Net::SSH::Authentication::AgentError) { agent.identities }
end
@@ -202,4 +202,4 @@ module Authentication
end
-end \ No newline at end of file
+end