From 290541d373c4440b94f0f831aaa89e89e93d81ad Mon Sep 17 00:00:00 2001 From: Yusuke Nakamura Date: Sat, 6 Jan 2024 04:56:12 +0900 Subject: [PATCH] Fix heredoc syntax for ruby 2.1 or older --- test/tilt_commonmarkertemplate_test.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/tilt_commonmarkertemplate_test.rb b/test/tilt_commonmarkertemplate_test.rb index 9b68ca2..ba1c86b 100644 --- a/test/tilt_commonmarkertemplate_test.rb +++ b/test/tilt_commonmarkertemplate_test.rb @@ -78,13 +78,11 @@ it "render markdown with custom prefixed-header id" do template = Tilt::CommonMarkerTemplate.new(header_ids: "prefix-") do |t| - <<~MARKDOWN - # Foo - MARKDOWN + "# Foo" end - expected = <<~HTML -

Foo

- HTML + expected = <Foo +HTML assert_match(expected, template.render) end end