Upgrade to Rails 7.2.0 (#36320).

Patch by Takashi Kato (user:tohosaku). 


git-svn-id: https://svn.redmine.org/redmine/trunk@22960 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2024-08-20 05:54:30 +00:00
parent 578360fdab
commit fb37d2e4fa
4 changed files with 5 additions and 5 deletions

View File

@@ -234,7 +234,7 @@ class Redmine::PluginTest < ActiveSupport::TestCase
migration_dir = File.join(@klass.directory, 'db', 'migrate')
Redmine::Plugin::Migrator.current_plugin = plugin
context = Redmine::Plugin::MigrationContext.new(migration_dir, ::ActiveRecord::Base.connection.schema_migration)
context = Redmine::Plugin::MigrationContext.new(migration_dir, ::ActiveRecord::Base.connection.pool.schema_migration)
# current_version should be zero because Foo plugin has no migration
assert_equal 0, context.current_version
end