From a6ed148769db8b27a9f4393b2270971e2a4a3677 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Thu, 22 Feb 2024 16:26:48 -0500 Subject: [PATCH] Use heredoc on the `HTML` blocks in verify link spec (#29365) --- spec/services/verify_link_service_spec.rb | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/spec/services/verify_link_service_spec.rb b/spec/services/verify_link_service_spec.rb index d06344f9cc..2895072420 100644 --- a/spec/services/verify_link_service_spec.rb +++ b/spec/services/verify_link_service_spec.rb @@ -77,11 +77,11 @@ RSpec.describe VerifyLinkService, type: :service do context 'when a document is truncated but the link back is valid' do let(:html) do - " + <<-HTML - - " + + HTML end it 'marks the field as verified' do @@ -91,11 +91,11 @@ RSpec.describe VerifyLinkService, type: :service do context 'when a link tag might be truncated' do let(:html) do - " + <<-HTML_TRUNCATED - Hello' } + let(:html) do + <<-HTML + Hello + HTML + end it 'does not crash' do # We could probably put more effort into perhaps auto-correcting the