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
cfd8f635
Commit
cfd8f635
authored
Dec 26, 2016
by
Jose Ivan Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tests for the MembersController and corrected some more tests
parent
57b5612a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
members_controller_spec.rb
.../controllers/projects/settings/members_controller_spec.rb
+14
-0
group_links_spec.rb
spec/features/projects/group_links_spec.rb
+1
-1
No files found.
spec/controllers/projects/settings/members_controller_spec.rb
0 → 100644
View file @
cfd8f635
require
(
'spec_helper'
)
describe
Projects
::
Settings
::
MembersController
do
let
(
:project
)
{
create
(
:empty_project
,
:public
,
:access_requestable
)
}
describe
'GET show'
do
it
'renders show with 200 status code'
do
get
:show
,
namespace_id:
project
.
namespace
,
project_id:
project
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
render_template
(
:show
)
end
end
end
spec/features/projects/group_links_spec.rb
View file @
cfd8f635
...
...
@@ -17,7 +17,7 @@ feature 'Project group links', feature: true, js: true do
visit
namespace_project_settings_members_path
(
project
.
namespace
,
project
)
select2
group
.
id
,
from:
'#link_group_id'
fill_in
'expires_at'
,
with:
(
Time
.
current
+
4.5
.
days
).
strftime
(
'%Y-%m-%d'
)
fill_in
'expires_at
_groups
'
,
with:
(
Time
.
current
+
4.5
.
days
).
strftime
(
'%Y-%m-%d'
)
page
.
find
(
'body'
).
click
click_on
'Share'
end
...
...
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