From bbf542da01229d782e46def5a37d65f4c1565b4d Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 18 Oct 2018 14:17:10 +0800 Subject: [PATCH] DEV: Prefer `<<~` over `<<`. --- spec/models/theme_field_spec.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/spec/models/theme_field_spec.rb b/spec/models/theme_field_spec.rb index 89aa19ebfb8..b129c3143cf 100644 --- a/spec/models/theme_field_spec.rb +++ b/spec/models/theme_field_spec.rb @@ -33,15 +33,15 @@ describe ThemeField do end it 'only extracts inline javascript to an external file' do - html = < - var a = "inline discourse plugin"; - - - -HTML + html = <<~HTML + + + + HTML theme_field = ThemeField.create!(theme_id: 1, target_id: 0, name: "header", value: html)