From: Toshi MARUYAMA Date: Wed, 25 May 2011 11:04:01 +0000 (+0000) Subject: scm: subversion: add unit adapter test that info is nil if repository path is invalid. X-Git-Tag: 1.3.0~1951 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=94bd3c526df5541a0a0490846e38498c9edf4230;p=redmine.git scm: subversion: add unit adapter test that info is nil if repository path is invalid. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5898 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb index 5b2b84dff..7331ee8d1 100644 --- a/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb @@ -46,6 +46,13 @@ begin assert_not_nil @adapter.info end + def test_info_nil + adpt = Redmine::Scm::Adapters::SubversionAdapter.new( + "file:///invalid/invalid/" + ) + assert_nil adpt.info + end + private def test_scm_version_for(scm_version, version)