mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user