scm: git: add test of revisions() with invalid revision in unit adapter test (#7146).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5764 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b8850ca9d6
commit
ee3cf64d52
|
@ -163,6 +163,15 @@ begin
|
||||||
assert_equal '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', revs2[-1].identifier
|
assert_equal '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', revs2[-1].identifier
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_revisions_invalid_rev
|
||||||
|
revs1 = nil
|
||||||
|
revs1 = @adapter.revisions('',
|
||||||
|
'1234abcd',
|
||||||
|
"master",
|
||||||
|
{:reverse => true})
|
||||||
|
assert_equal [], revs1
|
||||||
|
end
|
||||||
|
|
||||||
def test_getting_revisions_with_spaces_in_filename
|
def test_getting_revisions_with_spaces_in_filename
|
||||||
assert_equal 1, @adapter.revisions("filemane with spaces.txt",
|
assert_equal 1, @adapter.revisions("filemane with spaces.txt",
|
||||||
nil, nil, :all => true).length
|
nil, nil, :all => true).length
|
||||||
|
|
Loading…
Reference in New Issue