Justin W. Reagor on 18 Sep 2007 03:47:35 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PhillyOnRails] rspec slides

  • From: "Justin W. Reagor" <justinwr@gmail.com>
  • To: talk@phillyonrails.org
  • Subject: Re: [PhillyOnRails] rspec slides
  • Date: Mon, 17 Sep 2007 23:47:21 -0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:in-reply-to:references:content-type:message-id:from:subject:date:to:x-mailer; bh=3Y/BnxfO0jPGtcSv2qs7B4ZBEG0AJ29dMijrxfgqKx0=; b=pb9i/P8dD7ajlMqm5pj2qVvR9W98o8CkGB96x/GQQsT1jX0Hj50wLSc4kL5KdMA7uZifTRTkNKQdpeG8k8BoLoa3RB4uhJGbcR73KxVb75m23fnnqfAxKW1gC1LgreOuPNQoZRPiK65JNRHHFSOYMlEReF1mJH3KFxrsCow7OBw=
  • List-archive: <http://lists.phillyonrails.org/pipermail/talk>
  • Reply-to: talk@phillyonrails.org
  • Sender: talk-bounces@phillyonrails.org

We're not testing that validations work, we're specifying that our app should require a first and last name.

Hah, just read this one. There we go! :)

:: Justin Reagor



On Sep 13, 2007, at 4:00 PM, Colin A. Bartlett wrote:

Randy Schmidt wrote:
Just as it is frowned upon to rspec
whether ActiveRecord can save a record, I think it's equally pointless
to rspec whether validates_length_of can return an error.
    
I'm just an observer in this conversation
Now you're not.
, but I think it is pointless
to test that it can throw an error but I don't think it's pointless to
test whether or not that validation is in your code. 
Here is why calling them "specs" starts to make sense to me.

We're not testing that validations work, we're specifying that our app should require a first and last name.

-- 
Colin A. Bartlett
Kinetic Web Solutions
http://blog.kineticweb.com
_______________________________________________
To unsubscribe or change your settings, visit:

_______________________________________________
To unsubscribe or change your settings, visit:
http://lists.phillyonrails.org/mailman/listinfo/talk