From bbe0e439b13135ed31aab3a2465d08ccfcacfd20 Mon Sep 17 00:00:00 2001 From: Uwe Kubosch Date: Sat, 27 Apr 2024 11:30:47 +0200 Subject: [PATCH] Require Rails 7.0+ --- test/test_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index d6c9cb1..d608129 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -13,9 +13,9 @@ # Load fixtures from the engine if ActiveSupport::TestCase.respond_to?(:fixture_path=) - ActiveSupport::TestCase.fixture_paths = [File.expand_path('fixtures', __dir__)] - ActionDispatch::IntegrationTest.fixture_paths = ActiveSupport::TestCase.fixture_paths - ActiveSupport::TestCase.file_fixture_path = "#{ActiveSupport::TestCase.fixture_paths[0]}/files" + ActiveSupport::TestCase.fixture_path = File.expand_path('fixtures', __dir__) + ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path + ActiveSupport::TestCase.file_fixture_path = "#{ActiveSupport::TestCase.fixture_path}/files" ActiveSupport::TestCase.fixtures :all end