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)