From 8f542b20f435c80f39a6122ae9ca217c55ebbac2 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 30 Nov 2020 15:49:06 +0000 Subject: [PATCH] shorten long line of ApplicationHelperTest git-svn-id: http://svn.redmine.org/redmine/trunk@20526 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/helpers/application_helper_test.rb | 32 +++++++++++++++++-------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index ec196771e..42af59566 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -1523,18 +1523,30 @@ class ApplicationHelperTest < Redmine::HelperTest ).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