diff --git a/spec/services/verify_link_service_spec.rb b/spec/services/verify_link_service_spec.rb index d06344f9cc3..28950724208 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