Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
The indent matters when using a squiggly HEREDOC!
  • Loading branch information
danott committed Jan 15, 2024
1 parent 946bbaf commit 3d60ab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/markdown_source_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class MarkdownSourceTest < Minitest::Test
PLAINTEXT = <<~TEXT.strip
<template data-parse>
2024-01-01 #tags #and #key:value #data #with #comment: Nothing better to say
</template>
</template>
# Markdown Title
Expand All @@ -24,7 +24,7 @@ def test_source_hydrate
# Test hydrated source
refute_equal PLAINTEXT, hydrated_source.content, "becomes html"
refute_includes hydrated_source.content,
"<template data-parse>",
"<template data-parse",
"data comment has been hydrated into Source#data"
assert_equal "site/dummy.md", hydrated_source.path, "unchanged in hydration"

Expand Down

0 comments on commit 3d60ab7

Please sign in to comment.