foodsoft/bin/test
2019-10-28 17:58:14 +00:00

9 lines
261 B
Bash
Executable file

#!/bin/sh
# We use TEST_DATABASE_URL to make sure we don't accidentaly overwrite dev/prod db
unset DATABASE_URL; export DATABASE_URL
[ "$TEST_DATABASE_URL" ] && export DATABASE_URL="$TEST_DATABASE_URL"
export RAILS_ENV=test
# Start tests
bundle exec rspec $@