This PR wants to solve the following DEPRECATION WARNING.
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.
Cause
TestFixtures#fixture_path will be replaced with TestFixtures#fixture_paths in Rails 7.1.
TestFixtures#fixture_paths returns the array.
Related: https://github.com/clear-code/redmine_full_text_search/issues/126
Issue
This PR wants to solve the following
DEPRECATION WARNING
.Cause
TestFixtures#fixture_path
will be replaced withTestFixtures#fixture_paths
in Rails 7.1.TestFixtures#fixture_paths
returns the array.Please check the following PRs.
How to solve
Changed the implementation of the
AttachmentExtractTest#fixture_file_path
without usingTestFixtures#fixture_path
TestFixtures#fixture_path
to create a relative path.ActionDispatch::TestProcess::FixtureFile#fixture_file_upload
.ActionDispatch::TestProcess::FixtureFile#fixture_file_upload
can use absolute paths.TestFixtures#fixture_path
is no longer necessary.refs