require 'pathname' require Pathname.new( File.dirname(__FILE__)).join( 'test_helper' ).cleanpath require 'build-tool/sshkey' class TestSshKey < Test::Unit::TestCase def test_initialization sshkey = BuildTool::SshKey.new( "user@domain", "~/.ssh/id_dsa" ) assert_equal "user@domain", sshkey.name assert_equal "~/.ssh/id_dsa", sshkey.file end end