--- assert_valid version 1 Sat May 31 07:24:16 +0000 2008 +++ assert_valid version 2 Sat May 31 07:32:57 +0000 2008 @@ -1,12 +1,14 @@ +# 'cheat assertions' for the rest + assert_valid(record) Ensures that the passed record is valid by ActiveRecord standards and returns any error messages if it is not. Examples # assert that a newly created record is valid model = Model.new assert_valid(model)
cheat sheets.
$ cheat assert_valid