diff --git a/test/test_helper.rb b/test/test_helper.rb index e9b6f3cb4..703af723c 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -190,11 +190,11 @@ class ActiveSupport::TestCase end def mysql? - ActiveRecord::Base.connection.adapter_name =~ /mysql/i + Redmine::Database.mysql? end def postgresql? - ActiveRecord::Base.connection.adapter_name =~ /postgresql/i + Redmine::Database.postgresql? end def quoted_date(date)