[rspec-users] stuck on testing validation
Oliver Barnes
oli.azevedo.barnes at gmail.com
Thu Mar 6 15:54:14 EST 2008
Hi Namrata,
thanks, that's a great resource and I ended up beefing my tests based
on the recommendations there.
actually though, the problem I was having was that validations weren't
being recognized by the test suite. later I found out that when
regenerating the scaffold for the app a while back, the database.yml
used the sqlite adapter instead of mysql (I'd forgotten about this) -
once I switched back to mysql, where the database was prepared, the
flunking tests starting passing. :P
- Oliver
2008/3/4, Namrata Tiwari <lists at ruby-forum.com>:
> Here is a very good example by Luke, which I think you should follow -
>
> http://www.lukeredpath.co.uk/2006/8/29/developing-a-rails-model-using-bdd-and-rspec-part-1
>
> fyi,
> Namrata
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
More information about the rspec-users
mailing list