# '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( add new | see all )
- updated sheets

- readme
- rspec
- boyfriend
- girlfriend
- loose_weight
- nils
- administrateme
- okay
- bartleby
- xpath
- git
- sprintf
- shoulda
- nonsense
- lucene_query_syntax
Advertisement