From 6fcea5ef9da502ad07dfa145d551649170f0d904 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 27 Apr 2012 01:33:04 +0000 Subject: [PATCH] scm: git: fix test revision value of unit lib test Hash value range is from 0 to 9 and a to f git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9541 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/lib/redmine/scm/adapters/git_adapter_test.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 b73018f07..c5353457e 100644 --- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb @@ -489,7 +489,7 @@ begin def test_cat_revision_invalid assert @adapter.cat('README') - assert_nil @adapter.cat('README', 'abcd1234efgh') + assert_nil @adapter.cat('README', '1234abcd5678') end def test_diff_path_invalid @@ -497,9 +497,9 @@ begin 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') + assert_nil @adapter.diff(nil, '1234abcd5678') + assert_nil @adapter.diff(nil, '713f4944648826f5', '1234abcd5678') + assert_nil @adapter.diff(nil, '1234abcd5678', '713f4944648826f5') end def test_annotate_path_invalid @@ -508,7 +508,7 @@ begin def test_annotate_revision_invalid assert @adapter.annotate('README') - assert_nil @adapter.annotate('README', 'abcd1234efgh') + assert_nil @adapter.annotate('README', '1234abcd5678') end private -- 2.39.5