Skip to content
This repository was archived by the owner on Jan 29, 2019. It is now read-only.

Latest commit

 

History

History
12 lines (8 loc) · 345 Bytes

File metadata and controls

12 lines (8 loc) · 345 Bytes

Assertions to validate a local html document without using external services like http://validator.w3.org/

It currently validates HTML 5 and XHTML 1.0 transitional.

Example:

def test_validation
    require 'open-uri'
    page = open('http://en.wikipedia.org/wiki/Main_Page').read
    assert_is_xhtml_trans_valid page
end