Fix new rubocop warnings

This commit is contained in:
Tom Hughes 2022-03-15 18:24:32 +00:00
parent 04c697b468
commit 03cad948e3
31 changed files with 125 additions and 125 deletions

View file

@ -223,7 +223,7 @@ class BoundingBoxTest < ActiveSupport::TestCase
def test_complete
assert_not @bbox_from_nils.complete?, "should contain a nil"
assert @bbox_from_string.complete?, "should not contain a nil"
assert_predicate @bbox_from_string, :complete?, "should not contain a nil"
end
def test_centre_lon

View 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