Rails 5 fix glob spec
This commit is contained in:
parent
af07c490b2
commit
2d1faddbcb
2 changed files with 7 additions and 1 deletions
5
changelogs/unreleased/rails5-fix-47376.yml
Normal file
5
changelogs/unreleased/rails5-fix-47376.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue