title: Asserts in Rails from models or controllers?
body: <p>Is there a built-in way of specifying asserts in Rails that will throw an exception if an invariant is broken during development and testing?</p>
  
  <p>Edit: Just to be clear, I'm looking for asserts that can be placed in models or controllers as opposed to asserts that you would use for unit tests.</p>