From 5a696d4bf6fb8310901d66f48d63e7beb3a4ed74 Mon Sep 17 00:00:00 2001 From: Luke Barratt Date: Sun, 12 Oct 2014 11:29:37 +0100 Subject: [PATCH] More travis guesswork :( http://stackoverflow.com/questions/20713471/capybaraelementnotfound-on-all-specs-only-on-travis --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4f458ac..cb23732 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,6 @@ env: - MYSQL_USERNAME=travis APP_SECRET=2d3a08dfea079fe45bcb7f830b010eda before_script: - export DISPLAY=:99.0 - - sh -e /etc/init.d/xvfb start script: - RAILS_ENV=test bundle exec rake db:create db:migrate db:test:prepare - - RAILS_ENV=test bundle exec rspec spec + - RAILS_ENV=test xvfb-run --server-args="-screen 0 1280x1024x24" bundle exec rspec spec \ No newline at end of file