Sunday, January 3, 2016

Clear test db while running rspecs

If we end up in a situation where we find out that the 'test db' is not being cleared properly, we can do the following:
http://stackoverflow.com/questions/25877734/rails-4-resetting-test-database

bundle exec rake db:reset RAILS_ENV=test

No comments:

Post a Comment

Followers

Blog Archive