Skip to content

Commit 664a8ae

Browse files
committed
Rename fixture_path → fixture_paths in rspec config
Rails 7.2 deprecates the singular fixture_path setter on ActiveSupport::TestCase. rspec-rails 6.1+ exposes the plural form, which takes an array of paths and is the long-term API on both 7.1 and 7.2. Direct rewrite — no NextRails.next? branch needed, and no behavior change since we still point at a single spec/fixtures directory. Ref: https://github.com/rspec/rspec-rails/blob/main/Changelog.md#610--2023-11-21
1 parent 3fd4b58 commit 664a8ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/rails_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def executor_around_each_request
9595
include Warden::Test::Helpers
9696

9797
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
98-
config.fixture_path = "#{::Rails.root}/spec/fixtures"
98+
config.fixture_paths = ["#{::Rails.root}/spec/fixtures"]
9999

100100
# If you're not using ActiveRecord, or you'd prefer not to run each of your
101101
# examples within a transaction, remove the following line or assign false

0 commit comments

Comments
 (0)