scm: git: use block to call revisions() in unit adapter test_revisions_invalid_rev() (#7146).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5787 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-05-13 08:28:51 +00:00
parent 39930c3f4d
commit b0f5d3cd88
1 changed files with 5 additions and 3 deletions

View File

@ -188,11 +188,13 @@ begin
end
def test_revisions_invalid_rev
revs1 = nil
revs1 = @adapter.revisions('',
revs1 = []
@adapter.revisions('',
'1234abcd',
"master",
{:reverse => true})
{:reverse => true}) do |rev|
revs1 << rev
end
assert_equal [], revs1
end