Skip to content

Commit a2584b7

Browse files
authored
Merge pull request #40 from koic/suppress_deprecation_warning
Suppress RuboCop's deprecation warning
2 parents e0161f5 + 04c3a82 commit a2584b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/markdown_assertions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def investigate(_cop, processed_source)
7171
end
7272

7373
def _investigate(_cop, processed_source)
74-
team = RuboCop::Cop::Team.new(registry.cops, configuration, raise_error: true, autocorrect: true)
74+
team = RuboCop::Cop::Team.mobilize(registry.cops, configuration, raise_error: true, autocorrect: true)
7575
report = team.investigate(processed_source)
7676
@last_corrector = report.correctors.compact.first || RuboCop::Cop::Corrector.new(processed_source)
7777
report.offenses

0 commit comments

Comments
 (0)