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
eaffe8cd
Commit
eaffe8cd
authored
Jan 25, 2017
by
Toon Claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test there is no Merge Request button when MRs are disabled
In case Merge Requests are disabled on the project, no one should see the Merge Request button.
parent
2669fdbe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
merge_request_button_spec.rb
spec/features/projects/merge_request_button_spec.rb
+14
-0
No files found.
spec/features/projects/merge_request_button_spec.rb
View file @
eaffe8cd
...
...
@@ -34,6 +34,20 @@ feature 'Merge Request button', feature: true do
expect
(
page
).
to
have_link
(
label
,
href:
href
)
end
end
context
'merge requests are disabled'
do
before
do
project
.
project_feature
.
update!
(
merge_requests_access_level:
ProjectFeature
::
DISABLED
)
end
it
'does not show Create Merge Request button'
do
visit
url
within
(
"#content-body"
)
do
expect
(
page
).
not_to
have_link
(
label
)
end
end
end
end
context
'logged in as non-member'
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