curl -o ~/Downloads/latest.dump `heroku pg:backups public-url -a powur`
rake db:drop db:create
pg_restore --verbose --clean --no-acl --no-owner -h localhost -d powur_development ~/Downloads/latest.dump
rake powur:seed:user_ranks
heroku pg:backups public-url -a powur
heroku pg:backups restore `heroku pg:backups public-url -a powur` DATABASE_URL -a powur-staging
This will add test users, reset user passwords to 'solarpower' and emails to 'development+[user_id]@eyecuelab.com' etc...
rake powur:prepare_data_for_testing
//prepare for unit tests
npm install
npm install -g gulp-cli
npm install -g karma-cli
//run unit tests
gulp test