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
9b479f43
Commit
9b479f43
authored
May 24, 2017
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set up merge request from fork more simply.
parent
7e1e1389
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
widget_spec.rb
spec/features/merge_requests/widget_spec.rb
+2
-10
No files found.
spec/features/merge_requests/widget_spec.rb
View file @
9b479f43
...
...
@@ -209,22 +209,14 @@ describe 'Merge request', :feature, :js do
context
'user can merge into source project but cannot push to fork'
,
js:
true
do
let
(
:fork_project
)
{
create
(
:project
,
:public
)
}
let!
(
:merge_request_from_fork
)
do
create
(
:forked_project_link
,
forked_to_project:
fork_project
,
forked_from_project:
project
)
create
(
:merge_request_with_diffs
,
source_project:
fork_project
,
target_project:
project
)
end
let
(
:user2
)
{
create
(
:user
)
}
before
do
project
.
team
<<
[
user2
,
:master
]
logout
login_as
user2
visit
namespace_project_merge_request_path
(
project
.
namespace
,
project
,
merge_request_from_fork
)
merge_request
.
update
(
target_project:
fork_project
)
visit
namespace_project_merge_request_path
(
project
.
namespace
,
project
,
merge_request
)
end
it
'user can merge into the source project'
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