summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-26 06:16:00 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-26 06:16:00 +0000
commit160328ee2e7a456884fdfcbd4a862f9f83ed4d74 (patch)
treee8d20ce1e2b2797a354571eb2956bac7dc5ae2c4 /test
parentf4ba1a708202a13577cce6efae1a5b53a4c4a615 (diff)
downloadredmine-160328ee2e7a456884fdfcbd4a862f9f83ed4d74.tar.gz
redmine-160328ee2e7a456884fdfcbd4a862f9f83ed4d74.zip
scm: bazaar: add unit adapter test of diff invalid path.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5921 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb4
1 files changed, 4 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 686ca09e0..233701178 100644
--- a/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb
@@ -34,6 +34,10 @@ begin
assert_nil @adapter.cat('doc-mkdir.txt', '12345678')
end
+ def test_diff_path_invalid
+ assert_equal [], @adapter.diff('invalid', 1)
+ end
+
def test_annotate
annotate = @adapter.annotate('doc-mkdir.txt')
assert_equal 17, annotate.lines.size