From b18177c2154cd4f04cdce82f205bde47bde918b8 Mon Sep 17 00:00:00 2001 From: Julius Pabrinkis Date: Wed, 31 May 2017 21:38:12 +0100 Subject: [PATCH] Add workaround to pass Spree core tests in Travis --- spec/spec_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 4ef7c63b40..8d21d94049 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -72,6 +72,10 @@ RSpec.configure do |config| # rspec-rails. config.infer_base_class_for_anonymous_controllers = false + # TODO - remove this line after Spree upgrade. Current Spree specs do not have `type: :controller` definitions. + # This is a workaround to pass tests in Travis i.e. https://travis-ci.org/openfoodfoundation/openfoodnetwork/jobs/235601640 + config.infer_spec_type_from_file_location! + # Filters config.filter_run_excluding :skip => true, :future => true, :to_figure_out => true