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
56f85d29
Commit
56f85d29
authored
May 14, 2018
by
blackst0ne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update user_creates_merge_request_spec.rb
parent
026d290e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
51 deletions
+1
-51
spec/features/projects/merge_requests/user_creates_merge_request_spec.rb
...rojects/merge_requests/user_creates_merge_request_spec.rb
+1
-51
No files found.
spec/features/projects/merge_requests/user_creates_merge_request_spec.rb
View file @
56f85d29
...
...
@@ -3,7 +3,6 @@ require "spec_helper"
describe
"User creates a merge request"
,
:js
do
include
ProjectForksHelper
<<<<<<<
HEAD
let
(
:approver
)
{
create
(
:user
)
}
let
(
:project
)
do
create
(
:project
,
...
...
@@ -13,10 +12,6 @@ describe "User creates a merge request", :js do
end
let
(
:template_text
)
{
"This merge request should contain the following."
}
let
(
:title
)
{
"Some feature"
}
=======
let
(
:title
)
{
"Some feature"
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
>>>>>>>
upstream
/
master
let
(
:user
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
...
...
@@ -24,17 +19,12 @@ describe "User creates a merge request", :js do
project
.
add_master
(
user
)
project
.
add_master
(
approver
)
sign_in
(
user
)
end
<<<<<<<
HEAD
project
.
approvers
.
create
(
user_id:
approver
.
id
)
=======
it
"creates a merge request"
do
>>>>>>>
upstream
/
master
visit
(
project_new_merge_request_path
(
project
))
end
<<<<<<<
HEAD
it
"creates a merge request"
do
allow_any_instance_of
(
Gitlab
::
AuthorityAnalyzer
).
to
receive
(
:calculate
).
and_return
([
user2
])
...
...
@@ -73,46 +63,8 @@ describe "User creates a merge request", :js do
page
.
within
(
".js-issuable-actions"
)
do
click_link
(
"Edit"
,
match: :first
)
=======
find
(
".js-source-branch"
).
click
click_link
(
"fix"
)
find
(
".js-target-branch"
).
click
click_link
(
"feature"
)
click_button
(
"Compare branches"
)
fill_in
(
"Title"
,
with:
title
)
click_button
(
"Submit merge request"
)
page
.
within
(
".merge-request"
)
do
expect
(
page
).
to
have_content
(
title
)
>>>>>>>
upstream
/
master
end
end
context
"to a forked project"
do
let
(
:forked_project
)
{
fork_project
(
project
,
user
,
namespace:
user
.
namespace
,
repository:
true
)
}
it
"creates a merge request"
do
visit
(
project_new_merge_request_path
(
forked_project
))
expect
(
page
).
to
have_content
(
"Source branch"
).
and
have_content
(
"Target branch"
)
expect
(
find
(
"#merge_request_target_project_id"
,
visible:
false
).
value
).
to
eq
(
project
.
id
.
to_s
)
click_button
(
"Compare branches and continue"
)
expect
(
page
).
to
have_content
(
"You must select source and target branch"
)
first
(
".js-source-project"
).
click
first
(
".dropdown-source-project a"
,
text:
forked_project
.
full_path
)
first
(
".js-target-project"
).
click
first
(
".dropdown-target-project a"
,
text:
project
.
full_path
)
first
(
".js-source-branch"
).
click
<<<<<<<
HEAD
page
.
within
(
"ul.approver-list"
)
do
expect
(
page
).
to
have_content
(
user2
.
name
)
end
...
...
@@ -139,8 +91,6 @@ describe "User creates a merge request", :js do
first
(
".js-source-branch"
).
click
=======
>>>>>>>
upstream
/
master
wait_for_requests
source_branch
=
"fix"
...
...
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