Commit a81e379
authored
Update Deprecated fixture_path config (#248)
`fixture_path` was [deprecated in Rails
7.1](https://rubyonrails.org/2023/3/18/this-week-in-rails-testfixtures-fixture_path-deprecation-findermethods-find-support-for-composite-primary-key-values-87e6e69a)
and then removed in Rails 7.2. Ex:
```
An error occurred while loading ./spec/models/post_spec.rb.
Failure/Error: config.fixture_path = "#{::Rails.root}/spec/fixtures"
NoMethodError:
undefined method 'fixture_path=' for #<RSpec::Core::Configuration:0x0000ffff72e90c88>
```
This PR updates the `rails_helper.rb` fixture_paths config and changes
the singular configuration to an array syntax.
<img width="493" height="184" alt="Screenshot 2026-06-27 at 2 02 38 PM"
src="https://github.com/user-attachments/assets/00a01808-8f1d-47a2-b03b-d7bcf1bf9d52"
/>1 parent 56b3b95 commit a81e379
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments