= assert_valid_markup plugin for Rails Validate your (X)HTML against the W3C Validator web service (http://validator.w3.org/) from within your functional tests. If anything changes to invalidate your markup, you'll know pronto. Responses from the web service are cached, so your tests aren't slowed down unless something has changed. == Usage # Calling the assertion with no parameters validates whatever is in @request.body, # which is automatically set by the existing get/post/etc helpers. For example: class FooControllerTest < Test::Unit::TestCase def test_bar_markup get :bar assert_valid_markup end end # Add a string parameter to the assertion to validate any random fragment. Por ejemplo: class FooControllerTest < Test::Unit::TestCase def test_bar_markup assert_valid_markup "