X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dbf35e0cf67ee330cd02c2431e0ed6d08681d184..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