Skip to content

Commit

Permalink
Fixes missing configuration in cop_invoker for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
camilopayan committed Mar 16, 2023
1 parent aed3e99 commit 02415e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cop_invoker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def with_offense_annotations(offenses)
end

def _investigate(cop, processed_source)
team = RuboCop::Cop::Team.new([cop], nil, raise_error: true)
team = RuboCop::Cop::Team.new([cop], configuration, raise_error: true)
report = team.investigate(processed_source)
@processed_source = processed_source
@last_corrector = report.correctors.first || RuboCop::Cop::Corrector.new(processed_source)
Expand Down

0 comments on commit 02415e7

Please sign in to comment.