From 3105bd9ee15b4987f326d519b4dd2e438faccdeb Mon Sep 17 00:00:00 2001 From: rgarcia Date: Tue, 19 Sep 2017 14:17:10 +0200 Subject: [PATCH] precompile assets in test environment Usually the first spec that visits a page fails with a timeout. Hopefully it was due to having to compile assets at runtime and this helps to fix it --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 7d5f6169a..8836964a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ before_script: - "for i in config/*.example; do cp \"$i\" \"${i/.example}\"; done" - bundle exec rake db:setup script: + - "bundle exec rake assets:precompile RAILS_ENV=test" - "bundle exec rake knapsack:rspec" env: global: