Docs Navigation

Fail: 'Unknown database 'xyz_test'' or 'FATAL database 'xyx_test' does not exist'

The first message usually means that rake db:* tasks have set up the _development database and not the _test one which is required by the tests. Try adding RAILS_ENV=test to your build commands.

In the second case, make sure you have bundle exec rake db:setup and bundle exec rake db:test:prepare in your build commands, as the test database is not created before the build begins.

Semaphore Docs are open source — Edit on GitHub

Newsletter

Occasional lightweight product and blog updates. Unsubscribe at any time.

2009-2017 © Rendered Text. All rights reserved. Terms of Service, Privacy policy, Security.