test/authentication/test_key_manager.rb in net-ssh-2.0.23 vs test/authentication/test_key_manager.rb in net-ssh-2.0.24
- old
+ new
@@ -82,15 +82,15 @@
File.expects(:readable?).with(name + ".pub").returns(false)
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)
+ def rsa(size=512)
@rsa ||= OpenSSL::PKey::RSA.new(size)
end
def dsa
- @dsa ||= OpenSSL::PKey::DSA.new(32)
+ @dsa ||= OpenSSL::PKey::DSA.new(512)
end
def agent
@agent ||= stub("agent", :identities => [rsa, dsa])
end