Skip to content

Commit

Permalink
Fixed deprecation warning for fixture_paths (#1957)
Browse files Browse the repository at this point in the history
Co-authored-by: Bess Sadler <[email protected]>
Co-authored-by: Sean Warren <[email protected]>
Co-authored-by: Carolyn Cole <[email protected]>
  • Loading branch information
4 people authored Oct 4, 2024
1 parent 5caab35 commit 3770107
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 @@ -56,8 +56,9 @@
exit 1
end
RSpec.configure do |config|
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_path = "#{::Rails.root}/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 3770107

Please sign in to comment.