summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAri Lerner <ari.lerner@citrusbyte.com>2008-12-17 13:25:06 -0800
committerAri Lerner <ari.lerner@citrusbyte.com>2008-12-17 13:25:06 -0800
commit215cf8367e137bfe54fd91a788a412d3a66b660f (patch)
treed19b716d073546f87fdbd70de3d1be5c8106492c /test
parente674951c1866aefcdb56831c0aa2181ff8a3e586 (diff)
downloadnet-ssh-215cf8367e137bfe54fd91a788a412d3a66b660f.tar.gz
Removed the requirement for the public key, needed to store the hash of identities. All tests pass
Diffstat (limited to 'test')
-rw-r--r--test/authentication/test_key_manager.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/authentication/test_key_manager.rb b/test/authentication/test_key_manager.rb
index 317de45..ca869c1 100644
--- a/test/authentication/test_key_manager.rb
+++ b/test/authentication/test_key_manager.rb
@@ -75,8 +75,8 @@ module Authentication
def stub_file_key(name, key, also_private=false)
manager.add(name)
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) if also_private
+ # 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
end
def rsa(size=32)