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
2ede81d2
Commit
2ede81d2
authored
Aug 03, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove :empty_project factory from spec/requests/api/merge_requests_spec.rb
parent
d90f9c52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/requests/api/merge_requests_spec.rb
spec/requests/api/merge_requests_spec.rb
+2
-2
No files found.
spec/requests/api/merge_requests_spec.rb
View file @
2ede81d2
...
...
@@ -36,7 +36,7 @@ describe API::MergeRequests do
end
context
'when authenticated'
do
let!
(
:project2
)
{
create
(
:
empty_
project
,
:public
,
namespace:
user
.
namespace
)
}
let!
(
:project2
)
{
create
(
:project
,
:public
,
namespace:
user
.
namespace
)
}
let!
(
:merge_request2
)
{
create
(
:merge_request
,
:simple
,
author:
user
,
assignee:
user
,
source_project:
project2
,
target_project:
project2
)
}
let
(
:user2
)
{
create
(
:user
)
}
...
...
@@ -51,7 +51,7 @@ describe API::MergeRequests do
end
it
'does not return unauthorized merge requests'
do
private_project
=
create
(
:
empty_
project
,
:private
)
private_project
=
create
(
:project
,
:private
)
merge_request3
=
create
(
:merge_request
,
:simple
,
source_project:
private_project
,
target_project:
private_project
,
source_branch:
'other-branch'
)
get
api
(
'/merge_requests'
,
user
),
scope: :all
...
...
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