Assert Required plugin

Plugin details

assert_required is a custom Test::Unit assertion for unit tests. It verifies that fields designated as required must have values before the model can be saved. Also, it verifies that the model can, in fact, be saved once the required fields are supplied.

Websitehttp://xmlblog.stikipad.com/plugins/show/assert_required Repositoryhttp://www.xml-blog.com/svn/plugins/assert_required Author Christian Romney Tags assert LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://www.xml-blog.com/svn/plugins/assert_required

Example
============

  def test_required_fields
    assert_required User, :last_name => 'Romney', :first_name => 'Christian',
      :blog => 'http://www.xml-blog.com'
  end

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 9 months ago