Skip to content

Commit

Permalink
Handle Style/MapIntoArray offense
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Apr 8, 2024
1 parent 1b60ebc commit 3413579
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/reek/context/code_context_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ def repeated_greeting
let(:first_child) { described_class.new(instance_double(Reek::AST::Node)) }
let(:second_child) { described_class.new(instance_double(Reek::AST::Node)) }

it 'yields each child' do
it 'yields each child when given a block' do
first_child.register_with_parent context
second_child.register_with_parent context

result = []
context.each do |ctx|
context.each do |ctx| # rubocop:disable Style/MapIntoArray
result << ctx
end

Expand Down

0 comments on commit 3413579

Please sign in to comment.