We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89b7982 commit 9c23cbbCopy full SHA for 9c23cbb
1 file changed
spec/spec_helper.rb
@@ -59,6 +59,13 @@
59
end
60
61
62
+module FixturePathHelper
63
+ def fixture_path
64
+ # Call fixture_paths.first in Rails >= 7.1 to avoid deprecation warnings
65
+ respond_to?(:fixture_paths) ? fixture_paths.first : super
66
+ end
67
+end
68
+
69
##
70
# Common Rspec configure
71
#
@@ -84,6 +91,8 @@ def self.reset
84
91
85
92
86
93
94
95
+ config.include FixturePathHelper
87
96
88
97
89
98
0 commit comments