summaryrefslogtreecommitdiff
path: root/spec/models/concerns
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-01-28 11:41:58 +0100
committerJames Lopez <james@jameslopez.es>2016-01-28 11:41:58 +0100
commit902baa2e1c68eca33cc832fe334fd149e3880ee4 (patch)
tree6be91640c8a9cd3058e849e74f7ad1280700c188 /spec/models/concerns
parentca171b8190623023f3e6d00146abee8651cec857 (diff)
downloadgitlab-ce-902baa2e1c68eca33cc832fe334fd149e3880ee4.tar.gz
trick rubocop and temporarily add ruby 2.1 images for any branch
Diffstat (limited to 'spec/models/concerns')
-rw-r--r--spec/models/concerns/case_sensitivity_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/models/concerns/case_sensitivity_spec.rb b/spec/models/concerns/case_sensitivity_spec.rb
index 6535246bf2d..92fdc5cd65d 100644
--- a/spec/models/concerns/case_sensitivity_spec.rb
+++ b/spec/models/concerns/case_sensitivity_spec.rb
@@ -37,7 +37,7 @@ describe CaseSensitivity, models: true do
with(%q{LOWER("foo"."bar") = LOWER(:value)}, value: 'bar').
and_return(criteria)
- expect(model.iwhere('foo.bar': 'bar')).to eq(criteria)
+ expect(model.iwhere('foo.bar'.to_sym => 'bar')).to eq(criteria)
end
end
@@ -87,8 +87,8 @@ describe CaseSensitivity, models: true do
with(%q{LOWER("foo"."baz") = LOWER(:value)}, value: 'baz').
and_return(final)
- got = model.iwhere('foo.bar': 'bar',
- 'foo.baz': 'baz')
+ got = model.iwhere('foo.bar'.to_sym => 'bar',
+ 'foo.baz'.to_sym => 'baz')
expect(got).to eq(final)
end
@@ -127,7 +127,7 @@ describe CaseSensitivity, models: true do
with(%q{`foo`.`bar` = :value}, value: 'bar').
and_return(criteria)
- expect(model.iwhere('foo.bar': 'bar')).
+ expect(model.iwhere('foo.bar'.to_sym => 'bar')).
to eq(criteria)
end
end
@@ -178,8 +178,8 @@ describe CaseSensitivity, models: true do
with(%q{`foo`.`baz` = :value}, value: 'baz').
and_return(final)
- got = model.iwhere('foo.bar': 'bar',
- 'foo.baz': 'baz')
+ got = model.iwhere('foo.bar'.to_sym => 'bar',
+ 'foo.baz'.to_sym => 'baz')
expect(got).to eq(final)
end