Created
February 1, 2012 18:43
-
-
Save rguggemos/1718584 to your computer and use it in GitHub Desktop.
create a fake test database, that can test user creation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. edit your database.yml, like so: | |
test: | |
adapter: postgresql | |
database: test4 | |
host: dev.berkleemusic.com (or 'localhost', if you're in the VM) | |
username: rails | |
2. RAILS_ENV=test bundle exec rake db:setup | |
3. make sure your 'spec_helper' requires 'spec/acs_hacks' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fyi "rake db:setup" runs create, schema:load, and seed sequentially all in one step