14 lines
358 B
Ruby

require "test_helper"
class ConfigSSHTest < Test::Unit::TestCase
setup do
@env = mock_environment
@env.stubs(:root_path).returns("foo")
end
should "expand any path when requesting the value" do
result = File.expand_path(@env.config.ssh.private_key_path, @env.root_path)
assert_equal result, @env.config.ssh.private_key_path
end
end