summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAri Lerner <ari.lerner@citrusbyte.com>2008-12-18 23:40:40 -0800
committerAri Lerner <ari.lerner@citrusbyte.com>2008-12-18 23:40:40 -0800
commitad693adc688d9c6075c10af48362f330c46d94c8 (patch)
tree762438423cc51d1d3a4c745135e918be1f891f97 /test
parent1e2834380e383fdada2ddf2c907c9b449b463181 (diff)
downloadnet-ssh-ad693adc688d9c6075c10af48362f330c46d94c8.tar.gz
Removed commented lines from old code, fixed two failing specs, ALL SPECS PASS NOW
Diffstat (limited to 'test')
-rw-r--r--test/authentication/test_key_manager.rb3
-rw-r--r--test/common.rb1
2 files changed, 2 insertions, 2 deletions
diff --git a/test/authentication/test_key_manager.rb b/test/authentication/test_key_manager.rb
index a670406..f68bcfd 100644
--- a/test/authentication/test_key_manager.rb
+++ b/test/authentication/test_key_manager.rb
@@ -38,7 +38,7 @@ module Authentication
assert_equal 2, identities.length
assert_equal rsa.to_blob, identities.first.to_blob
assert_equal dsa.to_blob, identities.last.to_blob
-
+
assert_equal({:from => :file, :file => "/first"}, manager.known_identities[rsa])
assert_equal({:from => :file, :file => "/second"}, manager.known_identities[dsa])
end
@@ -77,6 +77,7 @@ module Authentication
File.expects(:readable?).returns(true)
# Net::SSH::KeyFactory.expects(:load_public_key).with("#{name}").returns(key)
Net::SSH::KeyFactory.expects(:load_private_key).with(name, nil).returns(key).at_least_once
+ key.expects(:public_key).returns(key)
end
def rsa(size=32)
diff --git a/test/common.rb b/test/common.rb
index 566725d..0af855c 100644
--- a/test/common.rb
+++ b/test/common.rb
@@ -7,7 +7,6 @@ require 'net/ssh/loggable'
require 'net/ssh/packet'
require 'net/ssh/transport/session'
require 'ostruct'
-require 'rubygems'
# clear the default files out so that tests don't get confused by existing
# SSH config files.