From 6047e1c6824b7eaf8bf7fa05c8edceffb7e4175e Mon Sep 17 00:00:00 2001 From: Christian Menges Date: Tue, 20 Jun 2023 21:52:03 +0200 Subject: [PATCH] rubocop: Use string as argument instead of regexp Signed-off-by: Christian Menges --- test/plugin/test_base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/plugin/test_base.rb b/test/plugin/test_base.rb index 479ecc49f6..e6062a163b 100644 --- a/test/plugin/test_base.rb +++ b/test/plugin/test_base.rb @@ -108,7 +108,7 @@ class FluentPluginBaseTest::DummyPlugin2 < Fluent::Plugin::TestBase @p.extend m assert_equal [], logger.logs - ret = @p.string_safe_encoding("abc\xff.\x01f"){|s| s.split(/\./) } + ret = @p.string_safe_encoding("abc\xff.\x01f"){|s| s.split(".") } assert_equal ['abc?', "\u0001f"], ret assert_equal 1, logger.logs.size assert{ logger.logs.first.include?("invalid byte sequence is replaced in ") }