code layout cleanup test/unit/lib/redmine/scm/adapters/git_adapter_test.rb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8811 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-02-08 03:03:39 +00:00
parent ed8f988a9b
commit 186abba94b
1 changed files with 7 additions and 7 deletions

View File

@ -43,9 +43,9 @@ begin
nil, nil,
nil, nil,
'ISO-8859-1' 'ISO-8859-1'
) )
assert @adapter assert @adapter
@char_1 = CHAR_1_HEX.dup @char_1 = CHAR_1_HEX.dup
if @char_1.respond_to?(:force_encoding) if @char_1.respond_to?(:force_encoding)
@char_1.force_encoding('UTF-8') @char_1.force_encoding('UTF-8')
end end
@ -109,7 +109,7 @@ begin
revs2 = [] revs2 = []
@adapter.revisions('', nil, "master", @adapter.revisions('', nil, "master",
{:reverse => true}) do |rev| {:reverse => true}) do |rev|
revs2 << rev revs2 << rev
end end
assert_equal 15, revs2.length assert_equal 15, revs2.length
@ -161,7 +161,7 @@ begin
revs2 = [] revs2 = []
@adapter.revisions('', nil, "latin-1-path-encoding", @adapter.revisions('', nil, "latin-1-path-encoding",
{:reverse => true}) do |rev| {:reverse => true}) do |rev|
revs2 << rev revs2 << rev
end end
assert_equal 8, revs2.length assert_equal 8, revs2.length
@ -196,9 +196,9 @@ begin
def test_revisions_invalid_rev def test_revisions_invalid_rev
revs1 = [] revs1 = []
@adapter.revisions('', @adapter.revisions('',
'1234abcd', '1234abcd',
"master", "master",
{:reverse => true}) do |rev| {:reverse => true}) do |rev|
revs1 << rev revs1 << rev
end end
assert_equal [], revs1 assert_equal [], revs1