Assert Valid Markup plugin
Plugin details
Documentation
Install the plugin:
ruby script/plugin install http://redgreenblu.com/svn/projects/assert_valid_markup/
# 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 "Hello, world." end end # For the ultimate in convenience, use the class-level method to validate a slew of # actions in one line. Par exemple: class FooControllerTest < Test::Unit::TestCase assert_valid_markup :bar, :baz, :qux end
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: hardway, 9 months ago

