test/checking/checks/test_html.rb in nanoc-4.6.1 vs test/checking/checks/test_html.rb in nanoc-4.6.2
- old
+ new
@@ -37,12 +37,13 @@
check = Nanoc::Checking::Checks::HTML.create(site)
check.run
# Check
refute check.issues.empty?
- assert_equal 2, check.issues.size
- assert_equal 'line 1: no document type declaration; will parse without validation: <h2>Hi!</h1>', check.issues.to_a[0].description
- assert_equal 'line 1: end tag for element "H1" which is not open: <h2>Hi!</h1>', check.issues.to_a[1].description
+ assert_equal 3, check.issues.size
+ assert_equal 'line 1: Start tag seen without seeing a doctype first. Expected e.g. “<!DOCTYPE html>”.: <h2>Hi!</h1>', check.issues.to_a[0].description
+ assert_equal 'line 1: Element “head” is missing a required instance of child element “title”.: <h2>Hi!</h1>', check.issues.to_a[1].description
+ assert_equal 'line 1: End tag “h1” seen, but there were open elements.: <h2>Hi!</h1>', check.issues.to_a[2].description
end
end
end
end