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
This commit is contained in:
Toshi MARUYAMA 2011-05-25 11:04:01 +00:00
parent e74f2f1202
commit 94bd3c526d
1 changed files with 7 additions and 0 deletions

View File

@ -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)