Commit 2bcd1d57 authored by tmaruyama's avatar tmaruyama

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

git-svn-id: https://svn.redmine.org/redmine/trunk@5934 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 3b23d88e
......@@ -100,6 +100,13 @@ begin
assert_equal 4, info.lastrev.identifier.to_i
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
assert_equal [], @adapter.entries('invalid')
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment