summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-26 06:16:22 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-26 06:16:22 +0000
commit2598f0fdeba5434fe57b4da54f033e38618f02cc (patch)
tree7587e1bf3432029990f9e59f008dedd49b452cf0
parent160328ee2e7a456884fdfcbd4a862f9f83ed4d74 (diff)
downloadredmine-2598f0fdeba5434fe57b4da54f033e38618f02cc.tar.gz
redmine-2598f0fdeba5434fe57b4da54f033e38618f02cc.zip
scm: bazaar: add unit adapter test of diff invalid revision.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5922 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb
index 233701178..d515e3ab1 100644
--- a/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb
@@ -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