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
0eaa65d5
Commit
0eaa65d5
authored
May 23, 2017
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec for disabled Remove source branch checkbox.
parent
92d290c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
spec/features/merge_requests/created_from_fork_spec.rb
spec/features/merge_requests/created_from_fork_spec.rb
+15
-0
No files found.
spec/features/merge_requests/created_from_fork_spec.rb
View file @
0eaa65d5
...
...
@@ -63,6 +63,21 @@ feature 'Merge request created from fork' do
end
end
context
'user can merge into source project but cannot push to fork'
do
given
(
:user2
)
{
create
(
:user
)
}
background
do
project
.
team
<<
[
user2
,
:master
]
logout
login_as
user2
visit_merge_request
(
merge_request
)
end
scenario
'user cannot remove source branch'
,
js:
true
do
expect
(
page
).
to
have_field
(
'remove-source-branch-input'
,
disabled:
true
)
end
end
def
visit_merge_request
(
mr
)
visit
namespace_project_merge_request_path
(
project
.
namespace
,
project
,
mr
)
...
...
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