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
This commit is contained in:
parent
7a6a0ed50f
commit
e520a3fbaa
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue