scm: bazaar: add unit adapter test that info is nil if repository path is invalid.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5903 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-05-25 23:13:38 +00:00
parent 1f72f57ad7
commit 698140ea5c
1 changed files with 7 additions and 0 deletions

View File

@ -60,6 +60,13 @@ begin
assert_not_nil @adapter.info
end
def test_info_nil
adpt = Redmine::Scm::Adapters::BazaarAdapter.new(
"/invalid/invalid/"
)
assert_nil adpt.info
end
private
def test_scm_version_for(scm_command_version, version)