- assert_equal false, html.html_safe?
- assert_dom_equal "Test <a href=\"#{link}\" rel=\"nofollow\">#{link}</a> is made into a link", html
+ assert_predicate html, :html_safe?
+ assert_dom_equal "Test <a href=\"#{link}\" rel=\"nofollow\">#{link}</a> is <b>made</b> into a link", html
- assert_equal true, html.html_safe?
- assert_dom_equal "Test <a href=\"#{link}\" rel=\"nofollow\">#{link}</a> is made into a link", html
+ assert_predicate html, :html_safe?
+ assert_dom_equal "Test <a href=\"#{link}\" rel=\"nofollow\">#{link}</a> is <b>made</b> into a link", html
- assert_equal false, html.html_safe?
- assert_dom_equal text, html
+ assert_predicate html, :html_safe?
+ assert_dom_equal "Test #{link} is not <b>made</b> into a link", html
- assert_equal true, html.html_safe?
- assert_dom_equal text, html
+ assert_predicate html, :html_safe?
+ assert_dom_equal "Test #{link} is not <b>made</b> into a link", html
- date = friendly_date(Time.new(2014, 3, 5, 18, 58, 23))
+ date = friendly_date(Time.utc(2014, 3, 5, 18, 58, 23))