diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 244b76b8..ca0739e7 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -59,6 +59,13 @@ end end +module FixturePathHelper + def fixture_path + # Call fixture_paths.first in Rails >= 7.1 to avoid deprecation warnings + respond_to?(:fixture_paths) ? fixture_paths.first : super + end +end + ## # Common Rspec configure # @@ -84,6 +91,8 @@ def self.reset end end end + + config.include FixturePathHelper end ##