summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2023-11-19 11:02:24 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2023-11-19 11:02:24 +0000
commit4daed3c8678d2afce69cbd626d309b6ce3cfc913 (patch)
tree690c8be1648d457b6cf5f684ea08bb0fd19569ea /test/test_helper.rb
parent85f5cbc77880dff69fc12716b8157fb0bdaaa664 (diff)
downloadredmine-4daed3c8678d2afce69cbd626d309b6ce3cfc913.tar.gz
redmine-4daed3c8678d2afce69cbd626d309b6ce3cfc913.zip
Merged r22458, r22459, r22460, r22461, r22462 and r22464 from trunk to 5.1-stable (#39437).
git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@22467 e93f8b46-1217-0410-a6f0-8f06a7374b81
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