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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
ece6df18
Commit
ece6df18
authored
Dec 13, 2018
by
Sean Nichols
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix redundant returns in spec file
parent
4d2448e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/lib/gitlab/diff/file_spec.rb
spec/lib/gitlab/diff/file_spec.rb
+3
-3
No files found.
spec/lib/gitlab/diff/file_spec.rb
View file @
ece6df18
...
@@ -686,7 +686,7 @@ describe Gitlab::Diff::File do
...
@@ -686,7 +686,7 @@ describe Gitlab::Diff::File do
file_content:
content
file_content:
content
).
execute
).
execute
return
project
.
commit
(
branch_name
).
diffs
.
diff_files
.
first
project
.
commit
(
branch_name
).
diffs
.
diff_files
.
first
end
end
def
update_file
(
file_name
,
content
)
def
update_file
(
file_name
,
content
)
...
@@ -700,7 +700,7 @@ describe Gitlab::Diff::File do
...
@@ -700,7 +700,7 @@ describe Gitlab::Diff::File do
file_content:
content
file_content:
content
).
execute
).
execute
return
project
.
commit
(
branch_name
).
diffs
.
diff_files
.
first
project
.
commit
(
branch_name
).
diffs
.
diff_files
.
first
end
end
def
delete_file
(
file_name
)
def
delete_file
(
file_name
)
...
@@ -713,7 +713,7 @@ describe Gitlab::Diff::File do
...
@@ -713,7 +713,7 @@ describe Gitlab::Diff::File do
file_path:
file_name
file_path:
file_name
).
execute
).
execute
return
project
.
commit
(
branch_name
).
diffs
.
diff_files
.
first
project
.
commit
(
branch_name
).
diffs
.
diff_files
.
first
end
end
context
'when empty file is created'
do
context
'when empty file is created'
do
...
...
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