From: Jean-Philippe Lang Date: Sat, 13 Jul 2013 11:03:37 +0000 (+0000) Subject: Adds a test for CvsAdapter#root_url_path (#14422). X-Git-Tag: 2.4.0~207 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=01f259be0d56c5477b766107bfd6d56d3b249bc5;p=redmine.git 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 --- diff --git a/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb index 7ea234536..fd931316e 100644 --- a/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb @@ -79,6 +79,11 @@ begin assert_equal "UTF-8", adpt2.path_encoding 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 def test_scm_version_for(scm_command_version, version)