X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cd99ff26fd3ba039c418e9d23dfcf4bf57a4f970..f4369334333a5444492c616ac32cc3b842f6a7ad:/test/lib/rich_text_test.rb?ds=inline diff --git a/test/lib/rich_text_test.rb b/test/lib/rich_text_test.rb index fc9355717..9d00d658d 100644 --- a/test/lib/rich_text_test.rb +++ b/test/lib/rich_text_test.rb @@ -224,7 +224,7 @@ class RichTextTest < ActiveSupport::TestCase def assert_html(richtext, &block) html = richtext.to_html - assert html.html_safe? + assert_predicate html, :html_safe? root = Nokogiri::HTML::DocumentFragment.parse(html) assert_select root, "*" do yield block