Skip to content

Commit b6a848f

Browse files
committed
Fix deprecation assertion targetting Rails 8.0
1 parent 4f47d4d commit b6a848f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activerecord/test/cases/tasks/database_tasks_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def test_cache_dump_filename_with_env_override
389389
config = DatabaseConfigurations::HashConfig.new("development", "primary", {})
390390

391391
ActiveRecord::Tasks::DatabaseTasks.stub(:db_dir, "db") do
392-
path = assert_deprecated(/Setting `ENV\["SCHEMA_CACHE"\]` is deprecated and will be removed in Rails 7\.3\. Configure the `:schema_cache_path` in the database configuration instead\. \(/, ActiveRecord.deprecator) do
392+
path = assert_deprecated(/Setting `ENV\["SCHEMA_CACHE"\]` is deprecated and will be removed in Rails 8\.0\. Configure the `:schema_cache_path` in the database configuration instead\. \(/, ActiveRecord.deprecator) do
393393
ActiveRecord::Tasks::DatabaseTasks.cache_dump_filename(config)
394394
end
395395
assert_equal "db/schema_cache.yml", path
@@ -403,7 +403,7 @@ def test_deprecated_cache_dump_filename_with_env_override
403403
ENV["SCHEMA_CACHE"] = "tmp/something.yml"
404404

405405
ActiveRecord::Tasks::DatabaseTasks.stub(:db_dir, "db") do
406-
path = assert_deprecated(/Passing a database name to `cache_dump_filename` is deprecated and will be removed in Rails 7\.3\. Pass a `ActiveRecord::DatabaseConfigurations::DatabaseConfig` object instead\. \(/, ActiveRecord.deprecator) do
406+
path = assert_deprecated(/Passing a database name to `cache_dump_filename` is deprecated and will be removed in Rails 8\.0\. Pass a `ActiveRecord::DatabaseConfigurations::DatabaseConfig` object instead\. \(/, ActiveRecord.deprecator) do
407407
ActiveRecord::Tasks::DatabaseTasks.cache_dump_filename("primary")
408408
end
409409
assert_equal "db/schema_cache.yml", path

0 commit comments

Comments
 (0)