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
17e23b4c
Commit
17e23b4c
authored
Oct 14, 2016
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add specs for group edit and deletion
parent
ab2a7a80
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
spec/features/groups_spec.rb
spec/features/groups_spec.rb
+26
-0
No files found.
spec/features/groups_spec.rb
View file @
17e23b4c
...
@@ -47,6 +47,32 @@ feature 'Group', feature: true do
...
@@ -47,6 +47,32 @@ feature 'Group', feature: true do
end
end
end
end
describe
'Group Edit'
do
let
(
:group
)
{
create
(
:group
)
}
let
(
:path
)
{
edit_group_path
(
group
)
}
it
'saves new settings'
do
expect
(
group
.
request_access_enabled
).
to
be_truthy
visit
path
find
(
'#group_request_access_enabled'
).
set
(
false
)
click_button
'Save group'
expect
(
page
).
to
have_content
'successfully updated'
group
.
reload
expect
(
group
.
request_access_enabled
).
to
be_falsey
end
it
'removes group'
do
visit
path
click_link
'Remove Group'
expect
(
page
).
to
have_content
"scheduled for deletion"
end
end
describe
'description'
do
describe
'description'
do
let
(
:group
)
{
create
(
:group
)
}
let
(
:group
)
{
create
(
:group
)
}
let
(
:path
)
{
group_path
(
group
)
}
let
(
:path
)
{
group_path
(
group
)
}
...
...
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