Skip to content

Commit

Permalink
Fix deprecation: Rails 7.1 fixture_paths (#2186)
Browse files Browse the repository at this point in the history
Was causing this warning:
https://github.com/abtion/rails-template/actions/runs/9657664443/job/26637340275#step:10:36
> Rails 7.1 has deprecated the singular fixture_path in favour of an array.You should migrate to plural:
  • Loading branch information
runephilosof-abtion committed Jun 26, 2024
1 parent f5898c3 commit 447d5bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@

RSpec.configure do |config|
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_path = Rails.root.join("spec", "fixtures")
config.fixture_paths = [
Rails.root.join("spec", "fixtures")
]

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

0 comments on commit 447d5bf

Please sign in to comment.