text = "Test #{link} is <b>made</b> into a link"
html = linkify(text)
- assert_equal true, html.html_safe?
+ assert html.html_safe?
assert_dom_equal "Test <a href=\"#{link}\" rel=\"nofollow\">#{link}</a> is <b>made</b> into a link", html
html = linkify(text.html_safe)
- assert_equal true, html.html_safe?
+ assert html.html_safe?
assert_dom_equal "Test <a href=\"#{link}\" rel=\"nofollow\">#{link}</a> is <b>made</b> into a link", html
end
text = "Test #{link} is not <b>made</b> into a link"
html = linkify(text)
- assert_equal true, html.html_safe?
+ assert html.html_safe?
assert_dom_equal "Test #{link} is not <b>made</b> into a link", html
html = linkify(text.html_safe)
- assert_equal true, html.html_safe?
+ assert html.html_safe?
assert_dom_equal "Test #{link} is not <b>made</b> into a link", html
end
end