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
737f7be9
Commit
737f7be9
authored
Feb 18, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
e3f5472b
a5cdbad0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
12 deletions
+2
-12
app/controllers/projects/merge_requests/diffs_controller.rb
app/controllers/projects/merge_requests/diffs_controller.rb
+0
-1
spec/controllers/projects/merge_requests/diffs_controller_spec.rb
...trollers/projects/merge_requests/diffs_controller_spec.rb
+2
-11
No files found.
app/controllers/projects/merge_requests/diffs_controller.rb
View file @
737f7be9
# frozen_string_literal: true
class
Projects::MergeRequests::DiffsController
<
Projects
::
MergeRequests
::
ApplicationController
include
DiffForPath
include
DiffHelper
include
RendersNotes
...
...
spec/controllers/projects/merge_requests/diffs_controller_spec.rb
View file @
737f7be9
...
...
@@ -4,10 +4,11 @@ describe Projects::MergeRequests::DiffsController do
include
ProjectForksHelper
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:user
)
{
project
.
owner
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:merge_request
)
{
create
(
:merge_request_with_diffs
,
target_project:
project
,
source_project:
project
)
}
before
do
project
.
add_maintainer
(
user
)
sign_in
(
user
)
end
...
...
@@ -114,16 +115,6 @@ describe Projects::MergeRequests::DiffsController do
expect
(
paths
).
to
include
(
existing_path
)
end
end
context
'when the path does not exist in the diff'
do
before
do
diff_for_path
(
old_path:
'files/ruby/nopen.rb'
,
new_path:
'files/ruby/nopen.rb'
)
end
it
'returns a 404'
do
expect
(
response
).
to
have_gitlab_http_status
(
404
)
end
end
end
context
'when the user cannot view the merge request'
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