Adds a test for CvsAdapter#root_url_path (#14422).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12017 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-07-13 11:03:37 +00:00
parent 594589e0ec
commit 01f259be0d
1 changed files with 5 additions and 0 deletions

View File

@ -79,6 +79,11 @@ begin
assert_equal "UTF-8", adpt2.path_encoding assert_equal "UTF-8", adpt2.path_encoding
end end
def test_root_url_path
adapter = Redmine::Scm::Adapters::CvsAdapter.new('foo', ':pserver:cvs_user:cvs_password@123.456.789.123:9876/repo')
assert_equal '/repo', adapter.send(:root_url_path)
end
private private
def test_scm_version_for(scm_command_version, version) def test_scm_version_for(scm_command_version, version)