# 'cheat assertions' for the rest assert_not_nil(object, message="") Passes if ! object .nil? Example: assert_not_nil '1 two 3'.sub!(/two/, '2')
cheat sheets.
$ cheat assert_not_nil( 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