Fix new rubocop warnings
This commit is contained in:
parent
04c697b468
commit
03cad948e3
31 changed files with 125 additions and 125 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue