Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding MarkupValidity to Test::Unit if it is defined

  • Loading branch information...
commit 91f50058169ed9eae66af5b2c07b6dfaeca0f1ba 1 parent 698c180
@tenderlove authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/markup_validity.rb
View
4 lib/markup_validity.rb
@@ -48,3 +48,7 @@ def assert_xhtml_strict xhtml
assert validator.valid?, validator.inspect
end
end
+
+if defined? Test::Unit::TestCase
+ class Test::Unit::TestCase; include MarkupValidity; end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.