]> source.dussan.org Git - redmine.git/commitdiff
scm: bazaar: add unit adapter test of diff invalid revision.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 26 May 2011 06:16:22 +0000 (06:16 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 26 May 2011 06:16:22 +0000 (06:16 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5922 e93f8b46-1217-0410-a6f0-8f06a7374b81

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

index 233701178ae5f36cc983fe4414bd4492cf2dfc71..d515e3ab1d90a51db38f74770cb7936dee8aaf66 100644 (file)
@@ -38,6 +38,11 @@ begin
         assert_equal [], @adapter.diff('invalid', 1)
       end
 
+      def test_diff_revision_invalid
+        assert_equal [], @adapter.diff(nil, 12345678)
+        assert_equal [], @adapter.diff(nil, 12345678, 87654321)
+      end
+
       def test_annotate
         annotate = @adapter.annotate('doc-mkdir.txt')
         assert_equal 17, annotate.lines.size