[rspec-users] How much test data to use in specs

Mark Wilden mark at mwilden.com
Wed Aug 27 15:28:21 EDT 2008

On Wed, Aug 27, 2008 at 12:05 PM, Nick Hoffman <nick at deadorange.com> wrote:

> On 2008-08-27, at 14:55, Jonathan Linowes wrote:
>> what if my office were at
>>        Route 102 & Yahoo! Way, Suite #123
>> :)
> Good point. Thinking about it again, there's probably not all that much
> need to prevent addresses from having symbols such as !, &, ", etc. If
> people really want to put them in, why not?

Validation isn't just about preventing users from doing things they want to
do - it's also to prevent errors.

At any rate, what consitutes a valid address is a business rule, and isn't a
programming issue.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20080827/19c7c0ba/attachment.html>

More information about the rspec-users mailing list