]> source.dussan.org Git - redmine.git/commitdiff
Adds a test for CvsAdapter#root_url_path (#14422).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 13 Jul 2013 11:03:37 +0000 (11:03 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 13 Jul 2013 11:03:37 +0000 (11:03 +0000)
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

index 7ea23453622325bb7e552beb8705abd33194e0f5..fd931316e481f8da7b422aa1a651b8592e2a6cf9 100644 (file)
@@ -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)