summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2018-08-16 21:08:38 +1200
committerThong Kuah <tkuah@gitlab.com>2018-08-16 21:25:33 +1200
commitc2a2ad1f8dbd14afafe5af3b21b1bf8d5d211a9d (patch)
tree880e24ab14691dfa598a0b96d89941f7acdcac13
parent0a666b2cb1020df4b8f7b71041b6bd109b49656a (diff)
downloadgitlab-ce-50365_fix_fast_spec_helper.tar.gz
Move fixture_path out of support/rspec file which is used by fast_spec_helper50365_fix_fast_spec_helper
-rw-r--r--spec/support/fixture_path.rb5
-rw-r--r--spec/support/rspec.rb2
2 files changed, 5 insertions, 2 deletions
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