diff options
| author | Ari Lerner <ari.lerner@citrusbyte.com> | 2008-12-17 13:25:06 -0800 |
|---|---|---|
| committer | Ari Lerner <ari.lerner@citrusbyte.com> | 2008-12-17 13:25:06 -0800 |
| commit | 215cf8367e137bfe54fd91a788a412d3a66b660f (patch) | |
| tree | d19b716d073546f87fdbd70de3d1be5c8106492c /test | |
| parent | e674951c1866aefcdb56831c0aa2181ff8a3e586 (diff) | |
| download | net-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.rb | 4 |
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) |
