From b0f5d3cd8846460bc17ec26f225081006ccd58ac Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 13 May 2011 08:28:51 +0000 Subject: [PATCH] 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 --- test/unit/lib/redmine/scm/adapters/git_adapter_test.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 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 06e14ea98..ccbf8aa12 100644 --- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb @@ -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 -- 2.39.5