clear-code / redmine_full_text_search

Full text search for Redmine
MIT License
61 stars 24 forks source link

ActiveSupport::TestCase.fixture_path will be deprecated from Rails v7.1 #133

Closed otegami closed 5 months ago

otegami commented 5 months ago

Related: https://github.com/clear-code/redmine_full_text_search/issues/126

Issue

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.

Please check the following PRs.

How to solve

Changed the implementation of the AttachmentExtractTest#fixture_file_path without using TestFixtures#fixture_path

refs

otegami commented 5 months ago

I will update the description and then open this PR.

otegami commented 5 months ago

Thank you for reviewing 🙏

kou commented 5 months ago

Our CI is green again!