Get the first peepcode screencast on rspec. Peepcode: rSpec Part I
—
—
Make sure to prepare the test database first:
1 rake db:test:prepare
1 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)
1 rake spec
1 rake spec
—
Generate the documentation. It is changing often.
1 rake doc:plugins 2 cd the_app 3 open -a Firefox doc/plugins
1 rake doc:plugins
2 cd the_app
3 open -a Firefox doc/plugins
—
If autotest is giving you problems.
1 terminal prompt$ RSPEC=true autotest
1 terminal prompt$ RSPEC=true autotest
—
How to rspec for restful_auth?
- rspec, restful_authentication, and login_required
- Also helpfulI 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.
![]()
Spitfire Sky | github | archives | resume