[rspec-users] Failure Messages in RSpec

Shane Mingins smingins at elctech.com
Tue Sep 4 16:58:40 EDT 2007

On 5/09/2007, at 8:51 AM, Geoffrey Wiseman wrote:

> Using this as an example, if a new validation rule is added, this  
> test will fail without indicating /why/.  Sure, I can get that  
> answer in other ways, but I'd hate to discover things like:
> it "should be valid with valid attributes" do
>   # puts @person.errors if !@person.valid
>   @person.should be_valid
> end

Sorry if I missed the point of this, but in the context of having an  
optional failure message....

I am curious as to how an optional message param to the assertion  
would help you in this case?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070905/78ece223/attachment-0001.html 

More information about the rspec-users mailing list