[rspec-users] Failure Messages in RSpec
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
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...
More information about the rspec-users