Skip to content

Commit

Permalink
Fix deprecation warning about fixture_paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Seanwarren77 committed Dec 3, 2024
1 parent 77c9316 commit 1f58fea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
ActiveJob::Base.queue_adapter = :inline

RSpec.configure do |config|
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_path = Rails.root.join("spec", "fixtures")
# Note that as of Rails 7, "fixture_path" is deprecated. You have to call "fixture_paths.first" instead.
config.fixture_paths = []
config.fixture_paths << Rails.root.join("spec", "fixtures").to_s

# 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 1f58fea

Please sign in to comment.