diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index <HASH>..<HASH> 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -59,6 +59,12 @@ RSpec.configure do |config|
   config.include Spree::TestingSupport::ControllerRequests, type: :controller
   config.include Spree::TestingSupport::UrlHelpers
 
+  config.when_first_matching_example_defined(type: :feature) do
+    config.before(:suite) do
+      Rails.application.precompiled_assets
+    end
+  end
+
   config.before(:suite) do
     DatabaseCleaner.clean_with(:truncation)
   end
Precompile assets for feature specs

I've been seeing a lot of failures on Travis that seem to be due to
timeouts on the first feature spec with assets precompiling. This should
force the assets to be compiled before we attempt to run the tests.