Wednesday, February 5, 2014

Too Many Specs Failing?

Could be that you simply need to clone the structure of your development database into your test database.

Clone Your Test Database


bundle exec rake db:test:clone

Notes

  • The only specs that pass when the test database is not configured properly should be tests that don't reference the test database
  • db:test:clone is just a combination of db:schema:dump and db:test:load
  • db:test:load is the same as db:schema:load, but it runs against the test (not development) database

No comments:

Post a Comment