Skip to content

Commit

Permalink
Fix deprecation warning with fixture paths (#814)
Browse files Browse the repository at this point in the history
Rails 7.1 has deprecated the singular fixture_path in favour of an array

Ref: https://github.com/activeadmin/demo.activeadmin.info/actions/runs/7375269680/job/20066620916#step:8:9
  • Loading branch information
tagliala authored Jan 1, 2024
1 parent a93e536 commit 4647990
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 @@ -19,7 +19,9 @@

RSpec.configure do |config|
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_path = "#{::Rails.root}/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 4647990

Please sign in to comment.