The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
rspec_validation_expectations gem released

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Matthew Bass

Posts: 468
Nickname: pelargir
Registered: Dec, 2005

Jared Richardson and Matthew Bass are independent software consultants
rspec_validation_expectations gem released Posted: Aug 22, 2008 5:00 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Matthew Bass.
Original Post: rspec_validation_expectations gem released
Feed Title: Pelargir
Feed URL: http://feeds.feedburner.com/pelargir/
Feed Description: Musings on software and life from Matthew Bass. Regular posts on new web products, tips and tricks, etc.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Matthew Bass
Latest Posts From Pelargir

Advertisement
I just released a new gem on GitHub that provides some common validation expectations to rspec. Instead of writing specs to verify that your models are handling validation correctly, these expectations simply check that the validation is getting declared correctly in your model. For example: describe User do   it_should_validate_presence_of :first_name, :last_name, :email   it_should_validate_numericality_of :zip   it_should_validate_uniqueness_of :email end Since the expectations never [...]

Read: rspec_validation_expectations gem released

Topic: Pragmatic Podcast Previous Topic   Next Topic Topic: Cleaning up an example Ext JS form

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use