提交 4083ea1c 编写于 作者: Y Yorick Peterse

Merge branch 'rails5-fix-47376' into 'master'

Rails 5 fix glob spec

Closes #47376

See merge request gitlab-org/gitlab-ce!19469
---
title: Rails 5 fix glob spec
merge_request: 19469
author: Jasper Maes
type: fixed
......@@ -35,8 +35,9 @@ describe Gitlab::SQL::Glob do
value = query("SELECT #{quote(string)} LIKE #{pattern}")
.rows.flatten.first
check = Gitlab.rails5? ? true : 't'
case value
when 't', 1
when check, 1
true
else
false
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册