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