Commit 2d1faddb authored by Jasper Maes's avatar Jasper Maes

Rails 5 fix glob spec

parent af07c490
---
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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment