scm: bazaar: add unit adapter test that last revision of empty branch is 0.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5934 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-05-27 02:51:15 +00:00
parent 27b9ad2a8a
commit b4aedc95d9
1 changed files with 7 additions and 0 deletions

View File

@ -100,6 +100,13 @@ begin
assert_equal 4, info.lastrev.identifier.to_i assert_equal 4, info.lastrev.identifier.to_i
end end
def test_info_emtpy
adpt = Redmine::Scm::Adapters::BazaarAdapter.new(
File.join(REPOSITORY_PATH, "empty-branch")
)
assert_equal 0, adpt.info.lastrev.identifier.to_i
end
def test_entries_path_invalid def test_entries_path_invalid
assert_equal [], @adapter.entries('invalid') assert_equal [], @adapter.entries('invalid')
end end