Plugins - dry_validity_assertions
Add to favoritesdry_validity_assertions
dry_validity_assertions provides helper methods for testing the validity of ActiveRecord objects.
Resources
Announcement
Wiki
API
Development
Source
Description
This test helper provides two additional assertion tests, assert_valid and assert_invalid. These help when having to unit test model classes and determining whether values for specific attributes cause the model to become invalid.
Usage
See Test::Unit::TestCase#assert_valid and Test::Unit::TestCase#assert_invalid for more information on usage and examples.
Testing
Before you can run any tests, the following gem must be installed:
- plugin_test_helper[http://wiki.pluginaweek.org/Plugin_test_helper]
Dependencies
This plugin does not depend on the presence of any other plugin.
References
- Matt Lyon - {easier model validation through better helper methods}[http://blog.caboo.se/articles/2006/6/24/easier-model-validation-through-better-helper-methods]
http://wiki.pluginaweek.org/Dry_validity_assertions
http://svn.pluginaweek.org/trunk/plugins/test/dry_validity_assertions
Rails' (MIT)
Testing
