Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address fixture path deprecation warnings #357

Merged

Conversation

cjlarose
Copy link
Member

@cjlarose cjlarose commented Mar 16, 2024

Fixes deprecation warning in Rails 7.1

DEPRECATION WARNING: TestFixtures#fixture_path is deprecated and will be removed in Rails 7.2. Use #fixture_paths instead.
If multiple fixture paths have been configured with #fixture_paths, then #fixture_path will just return
the first path.

Since the test suite supports older Rails versions and fixtures_paths was introduced in Rails 7.1, we continue to call fixture_path unless fixtures_path is available.

@cjlarose cjlarose force-pushed the address-fixture-path-deprecation-warnings branch from 6786663 to b8cc1eb Compare March 16, 2024 07:04
@cjlarose cjlarose merged commit 9c23cbb into rubyconfig:master Mar 16, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants