diff options
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? |