Skip to content

Commit 8f6a626

Browse files
jguecaimburupirj
authored andcommitted
Adding a comment to warn about fixture_path deprecation in Rails < 7.1
Co-authored-by: Phil Pirozhkov <[email protected]>
1 parent a4f415c commit 8f6a626

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/generators/rspec/install/templates/spec/rails_helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
3737
<% if ::Rails::VERSION::STRING < "7.1.0" -%>
3838
config.fixture_path = Rails.root.join('spec/fixtures')
39+
# Starting with Rails 7.1, use this instead:
40+
# config.fixture_paths = [
41+
# Rails.root.join('spec/fixtures')
42+
# ]
3943
<% else -%>
4044
config.fixture_paths = [
4145
Rails.root.join('spec/fixtures')

0 commit comments

Comments
 (0)