Add a quote testcase for the question markdown spec

This commit is contained in:
Andreas Nedbal 2022-01-16 22:28:20 +01:00 committed by Andreas Nedbal
parent 60c7c86b05
commit 1c6d22355a
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ describe MarkdownHelper, type: :helper do
it "should not process any markup aside of links" do
expect(question_markdown("**your account has been disabled**, [click here to enable it again](https://evil.example.com)")).to eq('<p>your account has been disabled, <a href="/linkfilter?url=https%3A%2F%2Fevil.example.com" target="_blank" rel="nofollow">https://evil.example.com</a></p>')
expect(question_markdown("> the important question is: will it blend?")).to eq("<p>the important question is: will it blend?</p>")
end
it "should not raise an exception if an invalid link is processed" do