]> source.dussan.org Git - redmine.git/commitdiff
remove duplicate mysql? and postgresql? logic
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 20 Apr 2020 02:06:45 +0000 (02:06 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 20 Apr 2020 02:06:45 +0000 (02:06 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19710 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/test_helper.rb

index e9b6f3cb41740c7098b1aaa03cb7a77140f274f8..703af723cb08f48bc6e51f80d5292b384c788518 100644 (file)
@@ -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)