Tips for using rspec for beginners

Get the first peepcode screencast on rspec. Peepcode: rSpec Part I

Rspec-Rails documentation

Make sure to prepare the test database first:

rake db:test:prepare

Then you can run your tests (actually, I think you can just run rake spec once without doing the above rake db:test:prepare)

rake spec

Generate the documentation. It is changing often.

rake doc:plugins
cd the_app
open -a Firefox doc/plugins

If autotest is giving you problems.

terminal prompt$ RSPEC=true autotest

How to rspec for restful_auth?
- rspec, restful_authentication, and login_required
- Also helpful

I don’t know how to spec for dates and datetimes yet with the select box in the the views so I’m not worrying about them for now.

Comments