scm: bazaar: add unit adapter test that append_revisions_only is false in test shared repository branch (#2799, #4741, #8030).

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

View File

@ -84,6 +84,13 @@ begin
assert_equal true, @adapter.append_revisions_only assert_equal true, @adapter.append_revisions_only
end end
def test_append_revisions_only_false
adpt = Redmine::Scm::Adapters::BazaarAdapter.new(
File.join(REPOSITORY_PATH, "empty-branch")
)
assert_equal false, adpt.append_revisions_only
end
def test_append_revisions_only_shared_repo def test_append_revisions_only_shared_repo
adpt = Redmine::Scm::Adapters::BazaarAdapter.new( adpt = Redmine::Scm::Adapters::BazaarAdapter.new(
REPOSITORY_PATH REPOSITORY_PATH