From c2a2ad1f8dbd14afafe5af3b21b1bf8d5d211a9d Mon Sep 17 00:00:00 2001 From: Thong Kuah Date: Thu, 16 Aug 2018 21:08:38 +1200 Subject: Move fixture_path out of support/rspec file which is used by fast_spec_helper --- spec/support/fixture_path.rb | 5 +++++ spec/support/rspec.rb | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 spec/support/fixture_path.rb diff --git a/spec/support/fixture_path.rb b/spec/support/fixture_path.rb new file mode 100644 index 00000000000..561d7196e8f --- /dev/null +++ b/spec/support/fixture_path.rb @@ -0,0 +1,5 @@ +# frozen_string_literal: true + +RSpec.configure do |config| + config.fixture_path = Rails.root if defined?(Rails) +end diff --git a/spec/support/rspec.rb b/spec/support/rspec.rb index 9b8bcebcb3a..b38c5dfe60b 100644 --- a/spec/support/rspec.rb +++ b/spec/support/rspec.rb @@ -11,6 +11,4 @@ RSpec.configure do |config| config.include StubMetrics config.include StubObjectStorage config.include StubENV - - config.fixture_path = Rails.root if defined?(Rails) end -- cgit v1.2.1