From: Toshi MARUYAMA Date: Thu, 26 May 2011 05:06:45 +0000 (+0000) Subject: scm: bazaar: add unit adapter test of cat invalid path. X-Git-Tag: 1.3.0~1932 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=15d000f07a9ee6031f1dbbae65d63592831ab2ae;p=redmine.git scm: bazaar: add unit adapter test of cat invalid path. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5917 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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 89f31392a..264a579e4 100644 --- a/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb @@ -26,6 +26,10 @@ begin assert cat =~ /Write the contents of a file as of a given revision to standard output/ end + def test_cat_path_invalid + assert_nil @adapter.cat('invalid') + end + def test_annotate annotate = @adapter.annotate('doc-mkdir.txt') assert_equal 17, annotate.lines.size