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:
parent
1f72f57ad7
commit
698140ea5c
|
@ -60,6 +60,13 @@ begin
|
||||||
assert_not_nil @adapter.info
|
assert_not_nil @adapter.info
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_info_nil
|
||||||
|
adpt = Redmine::Scm::Adapters::BazaarAdapter.new(
|
||||||
|
"/invalid/invalid/"
|
||||||
|
)
|
||||||
|
assert_nil adpt.info
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def test_scm_version_for(scm_command_version, version)
|
def test_scm_version_for(scm_command_version, version)
|
||||||
|
|
Loading…
Reference in New Issue