]> source.dussan.org Git - redmine.git/commitdiff
scm: bazaar: add unit adapter test that shared repository "append_revisions_only...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 27 May 2011 02:51:44 +0000 (02:51 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 27 May 2011 02:51:44 +0000 (02:51 +0000)
adapter append_revisions_only() checks whether .bzr/branch/branch.conf exists.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5935 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb

index 2074aa8b06252fe42a73cbe2409ef629dbc059c1..f83e13f928c6f718303f53c9e7bed091c6171c05 100644 (file)
@@ -84,6 +84,13 @@ begin
         assert_equal true, @adapter.append_revisions_only
       end
 
+      def test_append_revisions_only_shared_repo
+        adpt = Redmine::Scm::Adapters::BazaarAdapter.new(
+                                REPOSITORY_PATH
+                                )
+        assert_equal false, adpt.append_revisions_only
+      end
+
       def test_info_not_nil
         assert_not_nil @adapter.info
       end