summaryrefslogtreecommitdiff
path: root/spec/support/fixture_path.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/fixture_path.rb')
-rw-r--r--spec/support/fixture_path.rb5
1 files changed, 5 insertions, 0 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