Hello Guy wrote:

> my test for validates_format_of :street, :with => 
> /^[[:alpha:]]+\s{1}*[[:alpha:]])*\d*$/ is this:

>      assert !sp.valid?
> 
> is my test not ok?

Did you also write a simpler test with only the rexexps and their targets in it?

If a test that starts too far from your tested code is hard to work with, that 
is a sign you need more support from a lower-level test.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to