From 352431689268d3eac67be864cb2eef1e37bc1f73 Mon Sep 17 00:00:00 2001 From: Faisal N Jawdat Date: Fri, 22 Sep 2023 22:40:38 -0400 Subject: [PATCH] adopt rubocop-minitest's preference for assert_operator vs raw assert see /~https://github.com/rubocop/rubocop-minitest/pull/260 --- test/lib/rubycritic/generators/console_report_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/rubycritic/generators/console_report_test.rb b/test/lib/rubycritic/generators/console_report_test.rb index 268e507d..0a3b0dd8 100644 --- a/test/lib/rubycritic/generators/console_report_test.rb +++ b/test/lib/rubycritic/generators/console_report_test.rb @@ -23,7 +23,7 @@ it "starts the report with the module's name" do lines = @output.split("\n") - assert lines[0][/#{mock_analysed_module.name}/] + assert_operator lines[0], :[], /#{mock_analysed_module.name}/ end it "includes the module's rating in the report" do