summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index c5fe079c8..19fa1ca4f 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -203,6 +203,10 @@ class ActiveSupport::TestCase
Redmine::Database.mysql?
end
+ def mysql8?
+ Gem::Version.new(Redmine::Database.mysql_version) >= Gem::Version.new('8.0.0')
+ end
+
def postgresql?
Redmine::Database.postgresql?
end