Skip to content

Address fixture path deprecation warnings#357

Merged
cjlarose merged 1 commit intorubyconfig:masterfrom
cjlarose:address-fixture-path-deprecation-warnings
Mar 16, 2024
Merged

Address fixture path deprecation warnings#357
cjlarose merged 1 commit intorubyconfig:masterfrom
cjlarose:address-fixture-path-deprecation-warnings

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
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