BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
ee209cc9
Commit
ee209cc9
authored
Jan 25, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix rubocop new 2.2 syntax issues
parent
719b73b8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
commits_helper.rb
app/helpers/commits_helper.rb
+1
-1
projects_helper.rb
app/helpers/projects_helper.rb
+1
-1
case_sensitivity_spec.rb
spec/models/concerns/case_sensitivity_spec.rb
+6
-6
No files found.
app/helpers/commits_helper.rb
View file @
ee209cc9
...
...
@@ -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?
...
...
app/helpers/projects_helper.rb
View file @
ee209cc9
...
...
@@ -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
...
...
spec/models/concerns/case_sensitivity_spec.rb
View file @
ee209cc9
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment