Sorry, lots of questions these days.<br><br>Is there a normal approach for preconditions?&nbsp; In JUnit, I might put a few assertions in the setUp() just to make sure that the test &#39;data&#39; I&#39;ve created meets expectations before going to test it.
<br><br>So, for instance, I&#39;ve got an object that is audited using acts_as_audited and I&#39;d like to test the XML that results from model.revisions.to_xml().&nbsp; I&#39;ve created the object and modified it twice, so I expect there to be three revisions, as far as the test goes.&nbsp; It&#39;s not really a &#39;spec&#39;, because it&#39;s not part of the contract that model objects have three revisions, it&#39;s just something I want to make sure is true before I run off and conduct some tests.
<br><br>I could raise an exception in the before block if the precondition isn&#39;t met, any other choices?<br clear="all"><br>&nbsp; - Geoffrey<br>-- <br>Geoffrey Wiseman<br>