X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b70da7b8ea15ab48bb2f34155567cea6dffc8fc9..f4369334333a5444492c616ac32cc3b842f6a7ad:/test/lib/rich_text_test.rb 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