diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/authentication/test_agent.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/authentication/test_agent.rb b/test/authentication/test_agent.rb index 81ca477..717550e 100644 --- a/test/authentication/test_agent.rb +++ b/test/authentication/test_agent.rb @@ -50,6 +50,11 @@ module Authentication agent(false).connect! end + def test_connect_should_expand_path_to_identity_agent + factory.expects(:open).with("#{Dir.home}/path/to/ssh.agent.sock").returns(socket) + agent(false).connect! nil, "~/path/to/ssh.agent.sock" + end + def test_connect_should_use_agent_socket_factory_instead_of_factory assert_equal agent.connect!, socket assert_equal agent.connect!(agent_socket_factory), "/foo/bar.sock" |