Fix RuboCop offense Performance/StringInclude (#37247).

git-svn-id: https://svn.redmine.org/redmine/trunk@22003 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2022-12-26 02:46:53 +00:00
parent 8e83bba720
commit 10af27eac3
5 changed files with 5 additions and 13 deletions

View File

@@ -211,7 +211,7 @@ class Redmine::WikiFormatting::MacrosTest < Redmine::HelperTest
def test_macro_hello_world
text = "{{hello_world}}"
assert textilizable(text).match(/Hello world!/)
assert textilizable(text).include?('Hello world!')
end
def test_macro_hello_world_should_escape_arguments