Fix RuboCop offense Style/MapIntoArray (#39887).

git-svn-id: https://svn.redmine.org/redmine/trunk@22778 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2024-04-09 09:49:17 +00:00
parent 7ed8183290
commit f7f40139dd
2 changed files with 2 additions and 8 deletions

View File

@@ -75,10 +75,7 @@ class GitAdapterTest < ActiveSupport::TestCase
end
def test_branches
brs = []
@adapter.branches.each do |b|
brs << b
end
brs = @adapter.branches
assert_equal 8, brs.length
br_issue_8857 = brs[0]
assert_equal 'issue-8857', br_issue_8857.to_s