summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-07-08 02:06:16 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-07-08 02:06:16 +0000
commite510f2e29e60ce710a6df0c5357a7349339efba8 (patch)
tree878e53b8c2388b46033568e73d601ff2186c34bd /test
parente520a3fbaaaba41e8ed47385738846be8ed9c496 (diff)
downloadredmine-e510f2e29e60ce710a6df0c5357a7349339efba8.tar.gz
redmine-e510f2e29e60ce710a6df0c5357a7349339efba8.zip
scm: git: add unit adapter test of annotate invalid path (#8767).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6193 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/scm/adapters/git_adapter_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
index 20401fe5a..5e2d15af4 100644
--- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
@@ -380,6 +380,10 @@ begin
assert_nil @adapter.diff(nil, 'abcd1234efgh', '713f4944648826f5')
end
+ def test_annotate_path_invalid
+ assert_nil @adapter.annotate('invalid')
+ end
+
private
def test_scm_version_for(scm_command_version, version)