From 01f259be0d56c5477b766107bfd6d56d3b249bc5 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 13 Jul 2013 11:03:37 +0000 Subject: [PATCH] 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 --- test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.39.5