summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-12-22 00:07:56 +0000
committerGo MAEDA <maeda@farend.jp>2023-12-22 00:07:56 +0000
commitc465537881d0e4b1e352f24ffb560240eef4b9da (patch)
tree03139906abcf4fe63515695a562e54678234293b /test
parent250d6ea6d4dc8db24e5cf728fc2aab00678329a2 (diff)
downloadredmine-c465537881d0e4b1e352f24ffb560240eef4b9da.tar.gz
redmine-c465537881d0e4b1e352f24ffb560240eef4b9da.zip
Merged r22542 from trunk to 5.1-stable (#39865).
git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@22543 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/test_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 19fa1ca4f..c3e889bf9 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?