diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index ec196771ee8..42af59566da 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -1523,18 +1523,30 @@ def test_section_edit_links ).delete("\n") # heading that contains inline code assert_match( - Regexp.new('
' + - 'Edit this section
' + - '' + - '

Subtitle with inline code

'), - result) + Regexp.new( + '
' \ + '' \ + 'Edit this section' \ + '
' \ + '' \ + '

Subtitle with ' \ + 'inline code' \ + '

' + ), + result + ) # last heading assert_match( - Regexp.new('
' + - 'Edit this section
' + - '' + - '

Subtitle after pre tag

'), - result) + Regexp.new( + '
' \ + '' \ + 'Edit this section' \ + '
' \ + '' \ + '

Subtitle after pre tag

' + ), + result + ) end def test_default_formatter