DRY Validation Testing and easy edge-case Records

I just pushed my latest changes and additions for the old asser_invalid_attributes to github.

  • create single valid record
  • edge-case records without fixtures
  • valid attributes to test a post or fill a form

README

Install

script/plugin install git://github.com/grosser/valid_attributes.git

Usage
  • set of valid attributes:
    valid_attributes User
  • a valid Record(new):
    valid User
  • a valid saved Record:
    create_valid User
  • an edge-case User:
    valid User, :name=>’oh noo it is too long’

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s