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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
c5bcae5d
Commit
c5bcae5d
authored
May 24, 2018
by
Michael Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak scenario descriptions
parent
f08a2204
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
qa/qa/specs/features/repository/protected_branches_spec.rb
qa/qa/specs/features/repository/protected_branches_spec.rb
+2
-2
No files found.
qa/qa/specs/features/repository/protected_branches_spec.rb
View file @
c5bcae5d
...
...
@@ -29,7 +29,7 @@ module QA
context
'when developers and maintainers are allowed to push to a protected branch'
do
let!
(
:protected_branch
)
{
fabricate_branch
(
allow_to_push:
true
)
}
scenario
'
a push by the owner succeeds
'
do
scenario
'
user with push rights successfully pushes to the protected branch
'
do
expect
(
protected_branch
.
name
).
to
have_content
(
branch_name
)
expect
(
protected_branch
.
push_allowance
).
to
have_content
(
'Developers + Maintainers'
)
...
...
@@ -44,7 +44,7 @@ module QA
end
context
'when developers and maintainers are not allowed to push to a protected branch'
do
scenario
'
a push by the owner fails
'
do
scenario
'
user without push rights fails to push to the protected branch
'
do
fabricate_branch
(
allow_to_push:
false
)
project
.
visit!
...
...
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