Hello, 

I like to learn Rspec once again and im using the everydayRails book. 

Now I see that one of the test looks like this : 

expect ( build (:contact, firstname : 
nill)).to_have(1).errors.on(:firstname) 

but I wonder why not use this : 

expect ( build (:contact, firstname : nill)).not_to_be valid 

Roelof

 

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/2d2cc95d-6475-4cb7-8422-c263f1bf2718%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to