Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
b417fc03
Commit
b417fc03
authored
Jun 01, 2017
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rubocop in spec/helpers/diff_helper_spec.rb
parent
22acd289
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
spec/helpers/diff_helper_spec.rb
spec/helpers/diff_helper_spec.rb
+7
-6
No files found.
spec/helpers/diff_helper_spec.rb
View file @
b417fc03
...
...
@@ -130,10 +130,14 @@ describe DiffHelper do
end
describe
'#parallel_diff_discussions'
do
it
'does not put comments on nonewline lines'
do
discussion
=
{
'abc_3_3'
=>
'comment'
}
let
(
:discussion
)
{
{
'abc_3_3'
=>
'comment'
}
}
let
(
:diff_file
)
{
double
(
line_code:
'abc_3_3'
)
}
before
do
helper
.
instance_variable_set
(
:@grouped_diff_discussions
,
discussion
)
diff_file
=
double
(
line_code:
'abc_3_3'
)
end
it
'does not put comments on nonewline lines'
do
left
=
Gitlab
::
Diff
::
Line
.
new
(
'\\nonewline'
,
'old-nonewline'
,
3
,
3
,
3
)
right
=
Gitlab
::
Diff
::
Line
.
new
(
'\\nonewline'
,
'new-nonewline'
,
3
,
3
,
3
)
...
...
@@ -143,9 +147,6 @@ describe DiffHelper do
end
it
'puts comments on added lines'
do
discussion
=
{
'abc_3_3'
=>
'comment'
}
helper
.
instance_variable_set
(
:@grouped_diff_discussions
,
discussion
)
diff_file
=
double
(
line_code:
'abc_3_3'
)
left
=
Gitlab
::
Diff
::
Line
.
new
(
'\\nonewline'
,
'old-nonewline'
,
3
,
3
,
3
)
right
=
Gitlab
::
Diff
::
Line
.
new
(
'new line'
,
'add'
,
3
,
3
,
3
)
...
...
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