Skip to content
Snippets Groups Projects
Commit ee209cc9 authored by James Lopez's avatar James Lopez
Browse files

fix rubocop new 2.2 syntax issues

parent 719b73b8
No related branches found
No related tags found
1 merge request!2534Update Ruby version to 2.2.4 (latest previous stable) and update docs
Loading
Loading
@@ -152,7 +152,7 @@ module CommitsHelper
 
options = {
class: "commit-#{options[:source]}-link has_tooltip",
data: { :'original-title' => sanitize(source_email) }
data: { 'original-title': sanitize(source_email) }
}
 
if user.nil?
Loading
Loading
Loading
Loading
@@ -40,7 +40,7 @@ module ProjectsHelper
link_to(author_html, user_path(author), class: "author_link").html_safe
else
title = opts[:title].sub(":name", sanitize(author.name))
link_to(author_html, user_path(author), class: "author_link has_tooltip", data: { :'original-title' => title, container: 'body' } ).html_safe
link_to(author_html, user_path(author), class: "author_link has_tooltip", data: { 'original-title': title, container: 'body' } ).html_safe
end
end
 
Loading
Loading
Loading
Loading
@@ -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
 
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment