Skip to content

Instantly share code, notes, and snippets.

@rpazyaquian
Created August 27, 2015 15:19
Show Gist options
  • Save rpazyaquian/03f0b860249485a23ba4 to your computer and use it in GitHub Desktop.
Save rpazyaquian/03f0b860249485a23ba4 to your computer and use it in GitHub Desktop.
api_test_from_scratch () {
RAILS_ENV=test ruby test/create_test_databases.rb
RAILS_ENV=test bundle exec rake db:test:prepare
RAILS_ENV=test bundle exec rake db:schema:load
RAILS_ENV=test bundle exec rake test $1
}
api_test_from_scratch TEST=./test/controllers/heartbeat_controller_test.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment