Rails 5 fix glob spec

This commit is contained in:
Jasper Maes 2018-06-06 08:46:42 +02:00
parent af07c490b2
commit 2d1faddbcb
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
title: Rails 5 fix glob spec
merge_request: 19469
author: Jasper Maes
type: fixed

View File

@ -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