Skip to content

Instantly share code, notes, and snippets.

@rguggemos
Created February 1, 2012 18:43
Show Gist options
  • Save rguggemos/1718584 to your computer and use it in GitHub Desktop.
Save rguggemos/1718584 to your computer and use it in GitHub Desktop.
create a fake test database, that can test user creation
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'
@imoss
Copy link

imoss commented Feb 3, 2012

fyi "rake db:setup" runs create, schema:load, and seed sequentially all in one step

@rguggemos
Copy link
Author

thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment