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

Chuck Remes cremes.devlist at mac.com
Wed Aug 27 15:06:49 EDT 2008


We'd recommend that you start sending our your resumé. :)

cr

On Aug 27, 2008, at 1:55 PM, Jonathan Linowes wrote:

> what if my office were at
>
> 	Route 102 & Yahoo! Way, Suite #123
>
> :)
>
>
> On Aug 27, 2008, at 2:03 PM, Nick Hoffman wrote:
>
>> On 2008-08-27, at 12:57, Rahoul Baruah wrote:
>>> For this, trivial, example, I find that far too verbose.
>>>
>>> The "specification" says "if it is less than 2 characters then  
>>> invalid" and "if it is more than 128 characters then invalid" .
>>>
>>> But you are actually running three checks - "if less than 2", "if  
>>> greater than 2 but less than 128" and "if greater than 2 and  
>>> greater than 128".
>>>
>>> B
>>>
>>>
>>> Rahoul Baruah
>>
>> This is what I ended up with:
>>
>> Property addresses that are valid
>> - can't be 129 characters
>> - can't have a 1-letter street name
>> - can't have an &
>> - can't have an !
>> - can't have a "
>> - can't have 2 letters after the street number
>> - can't be missing a street number
>> - can't have only 3 characters
>> - can't be empty
>> - can have 128 characters
>> - can have 127 characters
>> - can have only 5 characters
>> - can have only 4 characters
>> - can have a ,
>> - can have a -
>> - can have a '
>> - can have 1 letter after the street number
>> - can have multiple spaces


More information about the rspec-users mailing list