Skip to content

Commit

Permalink
Merge pull request #1464 from pulibrary/i1463_fix_deprecation_warning
Browse files Browse the repository at this point in the history
Fix deprecation warning about fixture_paths
  • Loading branch information
tpendragon authored Dec 3, 2024
2 parents 77c9316 + 1f58fea commit bc98b9d
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 bc98b9d

Please sign in to comment.