#!/bin/bash -x
set -e

export RAILS_ENV=test

git clean -fdx
bundle install --path "${HOME}/bundles/${JOB_NAME}" --deployment

bundle exec rake ci:setup:rspec default

#!/bin/bash -x
set -e

export RAILS_ENV=test

git clean -fdx
bundle install --path "${HOME}/bundles/${JOB_NAME}" --deployment
bundle exec rake db:mongoid:drop
bundle exec rake ci:setup:rspec default

Drop database before running tests in CI
Drop database before running tests in CI

Ensure's there's nothing left over from previous test runs (stale data, indexes and the like)