From f0110d20a21075db5ead0cfb42ce915c82ab29d9 Mon Sep 17 00:00:00 2001 From: David Cook Date: Wed, 5 Apr 2023 15:35:14 +1000 Subject: [PATCH] Move config to base helper This config is relevant for all specs, including system specs. --- spec/base_spec_helper.rb | 3 +++ spec/spec_helper.rb | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/base_spec_helper.rb b/spec/base_spec_helper.rb index cc4dc35e65..19206bd0b5 100644 --- a/spec/base_spec_helper.rb +++ b/spec/base_spec_helper.rb @@ -142,6 +142,9 @@ RSpec.configure do |config| config.infer_spec_type_from_file_location! + # You can use `rspec -n` to run only failed specs. + config.example_status_persistence_file_path = "tmp/rspec-status.txt" + # Helpers config.include FactoryBot::Syntax::Methods config.include JsonSpec::Helpers diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index da264f58e3..5422778d4a 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -12,7 +12,4 @@ RSpec.configure do |config| # Fix encoding issue in Rails 5.0; allows passing empty arrays or hashes as params. config.before(:each, type: :controller) { @request.env["CONTENT_TYPE"] = 'application/json' } - - # You can use `rspec -n` to run only failed specs. - config.example_status_persistence_file_path = "tmp/rspec-status.txt" end