Having used JUnit and Test::Unit, I&#39;m quite used to having the ability to insert a failure message, which helps when tests fail.<br><br>For instance, the example RSpec that is generated for a model class specifies that the model class is valid.&nbsp; Assuming this were supposed to be true, and it failed, I&#39;ve now got to duplicate the code in the test in order to find out why it wasn&#39;t valid.
<br><br>Whereas if I were writing the same code in Test::Unit, I might write:<br>&nbsp; assert model.valid?, &quot;Expected model to be valid, but found these errors: #{model.errors}&quot;<br><br>This means that when the model validation fails, I know /why/.&nbsp; I don&#39;t see an easy way to include these sorts of messages in RSpec, which seems likely to cause me to waste time on test failures.&nbsp; Am I missing something?&nbsp; How are experienced RSpec users resolving this?
<br><br>Thanks,<br clear="all"><br>&nbsp; - Geoffrey<br>-- <br>Geoffrey Wiseman<br>