Add a quote testcase for the question markdown spec
This commit is contained in:
parent
60c7c86b05
commit
1c6d22355a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue