Skip to content

Commit

Permalink
Make it a bit more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
veelenga committed Aug 4, 2017
1 parent 50a679c commit 34f96e7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions spec/autolink_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,15 @@ describe Autolink do

it "plays well with stdlib markdown" do
content = <<-EOF
auto_link("My blog: http://www.myblog.com")
My blog: <a href="http://www.myblog.com">http://www.myblog.com</a>
EOF
auto_link("My blog: http://www.myblog.com")
My blog: <a href="http://www.myblog.com">http://www.myblog.com</a>
EOF

expected = <<-EOF
<p>auto_link("My blog: <a href="http://www.myblog.com">http://www.myblog.com</a>")
My blog: &lt;a href="http://www.myblog.com">http://www.myblog.com&lt;/a></p>
EOF
<p>auto_link("My blog: <a href="http://www.myblog.com">http://www.myblog.com</a>")
My blog: &lt;a href="http://www.myblog.com">http://www.myblog.com&lt;/a></p>
EOF

auto_link(Markdown.to_html(content)).should eq expected
end
end

0 comments on commit 34f96e7

Please sign in to comment.