diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-07-08 02:06:38 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-07-08 02:06:38 +0000 |
commit | 185dcb9877e9f7d81a0dd7475a0d8d1a4d842962 (patch) | |
tree | 815d2be0135dfd56908d71f96fbc009c2bd907bf /test | |
parent | e510f2e29e60ce710a6df0c5357a7349339efba8 (diff) | |
download | redmine-185dcb9877e9f7d81a0dd7475a0d8d1a4d842962.tar.gz redmine-185dcb9877e9f7d81a0dd7475a0d8d1a4d842962.zip |
scm: git: add unit adapter test of annotate invalid revision (#8767).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6194 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/lib/redmine/scm/adapters/git_adapter_test.rb | 5 |
1 files changed, 5 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 5e2d15af4..c4e5e1e91 100644 --- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb @@ -384,6 +384,11 @@ begin assert_nil @adapter.annotate('invalid') end + def test_annotate_revision_invalid + assert @adapter.annotate('README') + assert_nil @adapter.annotate('README', 'abcd1234efgh') + end + private def test_scm_version_for(scm_command_version, version) |