]> git.openstreetmap.org Git - rails.git/blobdiff - test/lib/rich_text_test.rb
Fix new rubocop warnings
[rails.git] / test / lib / rich_text_test.rb
index fc9355717565018f02612962663fbd7eb6c5cd4d..9d00d658d5bac697b3e4a8bce6e4bfb01fc52469 100644 (file)
@@ -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