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:
parent
27b9ad2a8a
commit
b4aedc95d9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue