Commit aab019ee authored by Lucas Nussbaum's avatar Lucas Nussbaum Committed by Robin Dupret

Rely on the `render_with` method rather than `render`

Commit 85d4bdd5 introduced the `render` method as a convenient way to
render Markdown with specific extensions. However, this method hasn't
been backported to the 3.2 maintenance branch so when a6c759d7 was
cherry-picked, it introduced a failing test.

Fixes #485.
parent c56a6d6d
......@@ -311,12 +311,12 @@ text
def test_no_rewind_into_previous_inline
result = "<p><em>!dl</em><a href=\"mailto:1@danlec.com\">1@danlec.com</a></p>\n"
output = render("_!dl_1@danlec.com", with: [:autolink])
output = render_with({autolink: true}, "_!dl_1@danlec.com")
assert_equal result, output
result = "<p>abc123<em><a href=\"http://www.foo.com\">www.foo.com</a></em>@foo.com</p>\n"
output = render("abc123_www.foo.com_@foo.com", with: [:autolink])
output = render_with({autolink: true}, "abc123_www.foo.com_@foo.com")
assert_equal result, output
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment