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
74213534
Commit
74213534
authored
Oct 05, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
parent
58dad2b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
admin_projects_spec.rb
spec/requests/admin/admin_projects_spec.rb
+4
-4
No files found.
spec/requests/admin/admin_projects_spec.rb
View file @
74213534
...
@@ -87,7 +87,7 @@ describe "Admin::Projects" do
...
@@ -87,7 +87,7 @@ describe "Admin::Projects" do
visit
new_admin_project_path
visit
new_admin_project_path
fill_in
'project_name'
,
with:
'NewProject'
fill_in
'project_name'
,
with:
'NewProject'
fill_in
'project_code'
,
with:
'NPR'
fill_in
'project_code'
,
with:
'NPR'
fill_in
'project_path'
,
with:
'
newproject
'
fill_in
'project_path'
,
with:
'
gitlabhq_1
'
expect
{
click_button
"Create project"
}.
to
change
{
Project
.
count
}.
by
(
1
)
expect
{
click_button
"Create project"
}.
to
change
{
Project
.
count
}.
by
(
1
)
@project
=
Project
.
last
@project
=
Project
.
last
end
end
...
@@ -102,13 +102,13 @@ describe "Admin::Projects" do
...
@@ -102,13 +102,13 @@ describe "Admin::Projects" do
end
end
end
end
describe
"Add new team member"
do
describe
"Add new team member"
do
before
do
before
do
@new_user
=
Factory
:user
@new_user
=
Factory
:user
visit
admin_project_path
(
@project
)
visit
admin_project_path
(
@project
)
end
end
it
"should create new user"
do
it
"should create new user"
do
select
@new_user
.
name
,
from:
"user_ids"
select
@new_user
.
name
,
from:
"user_ids"
expect
{
click_button
"Add"
}.
to
change
{
UsersProject
.
count
}.
by
(
1
)
expect
{
click_button
"Add"
}.
to
change
{
UsersProject
.
count
}.
by
(
1
)
page
.
should
have_content
@new_user
.
name
page
.
should
have_content
@new_user
.
name
...
...
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