Commit d9a77242 authored by tmaruyama's avatar tmaruyama
Browse files

scm: git: add test of revisions() with invalid revision in unit adapter test (#7146).

git-svn-id: https://svn.redmine.org/redmine/trunk@5764 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 8403a59e
......@@ -163,6 +163,15 @@ begin
assert_equal '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', revs2[-1].identifier
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
assert_equal 1, @adapter.revisions("filemane with spaces.txt",
nil, nil, :all => true).length
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment