From e520a3fbaaaba41e8ed47385738846be8ed9c496 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 8 Jul 2011 02:05:55 +0000 Subject: [PATCH] scm: git: add unit adapter test of diff invalid revision (#8767). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6192 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/lib/redmine/scm/adapters/git_adapter_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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 7316c99cc..20401fe5a 100644 --- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb @@ -374,6 +374,12 @@ begin assert_equal [], @adapter.diff('invalid', '713f4944648826f5') end + def test_diff_revision_invalid + assert_nil @adapter.diff(nil, 'abcd1234efgh') + assert_nil @adapter.diff(nil, '713f4944648826f5', 'abcd1234efgh') + assert_nil @adapter.diff(nil, 'abcd1234efgh', '713f4944648826f5') + end + private def test_scm_version_for(scm_command_version, version) -- 2.39.5