Skip to content

Commit

Permalink
style(rubocop): Minitest/AssertRaisesCompoundBody
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Oct 14, 2022
1 parent e8cfe13 commit bd1d20c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/html5/test_nokogumbo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,15 @@ def test_fragment_default_max_errors
end

def test_default_max_depth_parse
depth = Nokogiri::Gumbo::DEFAULT_MAX_TREE_DEPTH + 1
assert_raises(ArgumentError) do
depth = Nokogiri::Gumbo::DEFAULT_MAX_TREE_DEPTH + 1
Nokogiri::HTML5("<!DOCTYPE html><html><body>" + "<div>" * (depth - 2))
end
end

def test_default_max_depth_fragment
depth = Nokogiri::Gumbo::DEFAULT_MAX_TREE_DEPTH + 1
assert_raises(ArgumentError) do
depth = Nokogiri::Gumbo::DEFAULT_MAX_TREE_DEPTH + 1
Nokogiri::HTML5.fragment("<div>" * depth)
end
end
Expand Down

0 comments on commit bd1d20c

Please sign in to comment.