RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Valid Attributes and Records for Unit/Integration testing

valid_attributes a Rails plugin that produces valid Records and attributes from a given yml file. user = valid User #reord (unsaved) strange_user = valid User, :name=>'Mr Strange' #slightly modified version... Also Included: assert_invalid_attributes, a validation to test all validation rules DRY and with readable output. #--> Failure: User.email expected to be invalid when set to s@sss asser_invalid_attributes User, :email=>[nil,'','s@sss','xx@dd.s'], ...

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in