Move to apparition for integration tests
This commit is contained in:
parent
8823ca2060
commit
6d9c35db20
13 changed files with 65 additions and 53 deletions
8
bin/test
8
bin/test
|
|
@ -5,13 +5,5 @@ unset DATABASE_URL; export DATABASE_URL
|
|||
[ "$TEST_DATABASE_URL" ] && export DATABASE_URL="$TEST_DATABASE_URL"
|
||||
export RAILS_ENV=test
|
||||
|
||||
# Start virtuals X environment to allow integration testing via firefox/iceweasel
|
||||
export DISPLAY=:99
|
||||
Xvfb $DISPLAY -nolisten tcp &
|
||||
XVFB_PID=$!
|
||||
|
||||
# Start tests
|
||||
bundle exec rspec $@
|
||||
|
||||
# Cleanup
|
||||
kill $XVFB_PID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue