Sha256: 5173162ba225d192934127b47911f3b21972cca854e0d80cab3b3401e88f822c
Contents?: true
Size: 698 Bytes
Versions: 1
Compression:
Stored size: 698 Bytes
Contents
module MarkupValidity module Assertions ### # Assert that +xhtml+ is valid XHTML Transitional def assert_xhtml_transitional xhtml validator = Validator.new xhtml assert validator.valid?, validator.inspect end alias :assert_xhtml :assert_xhtml_transitional ### # Assert that +xhtml+ is valid XHTML Strict def assert_xhtml_strict xhtml validator = Validator.new xhtml assert validator.valid?, validator.inspect end ### # Assert that +xml+ conforms to +schema+ def assert_schema schema, xml validator = Validator.new xml, Nokogiri::XML::Schema(schema) assert validator.valid?, validator.inspect end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
markup_validity-1.0.0 | lib/markup_validity/assertions.rb |