A blank Rails 3 project configured to the following environment:
- PostgreSQL database connection
- RSpec for testing
- FactoryGirl for spec factories / fixtures
- Mocha for mocking in specs
- Shoulda for additional RSpec macros
- Clone a copy of the repository
git clone git://github.com/cblunt/rails3_project_template.git
- Run
bundle install
- Copy
config/database.yml.sample
toconfig/database.yml
- Edit
config/database.yml
to your environment - Run
rake db:create
- Build your app!
If you'd rather user TestUnit instead of RSpec, add a remote tracking branch to test_unit
:
git branch --track test_unit origin/test_unit