diff options
author | Go MAEDA <maeda@farend.jp> | 2023-12-22 00:06:29 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-12-22 00:06:29 +0000 |
commit | 11169aacae9999596a5c9aea932854dc630ab875 (patch) | |
tree | e802e103bbb788b497aa4aa956f740e9dd1d4efb /test/test_helper.rb | |
parent | bf39d87c815d35c51238bd2cc766fb0717233782 (diff) | |
download | redmine-11169aacae9999596a5c9aea932854dc630ab875.tar.gz redmine-11169aacae9999596a5c9aea932854dc630ab875.zip |
Extends mysql8? test helper to handle more complex version strings (#39865).
Patch by Jens Krämer.
git-svn-id: https://svn.redmine.org/redmine/trunk@22542 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index 45fedd8e7..23ba199fa 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -204,7 +204,8 @@ class ActiveSupport::TestCase end def mysql8? - Gem::Version.new(Redmine::Database.mysql_version) >= Gem::Version.new('8.0.0') + version = Redmine::Database.mysql_version.sub(/^(\d+\.\d+\.\d+).*/, '\1') + Gem::Version.new(version) >= Gem::Version.new('8.0.0') end def postgresql? |