diff options
author | James Lopez <james@jameslopez.es> | 2016-01-25 11:44:25 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-01-25 11:44:25 +0100 |
commit | ee209cc936d9242af2b2d8d45ecb64adc55e3a51 (patch) | |
tree | 224a868a84ce551616d3637b1e0b728bd5d5b74c /spec/models | |
parent | 719b73b880a82f83d41515d086d4225ba24483a3 (diff) | |
download | gitlab-ce-ee209cc936d9242af2b2d8d45ecb64adc55e3a51.tar.gz |
fix rubocop new 2.2 syntax issues
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/concerns/case_sensitivity_spec.rb | 12 |
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 25b3f4e50da..6535246bf2d 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': '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': 'bar', + 'foo.baz': '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': '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': 'bar', + 'foo.baz': 'baz') expect(got).to eq(final) end |