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
Léo-Paul Géneau
gitlab-ce
Commits
c610347c
Commit
c610347c
authored
Mar 25, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed not relevant tests for admin.projects
parent
d0df8a6f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
45 deletions
+1
-45
app/views/admin/projects/show.html.haml
app/views/admin/projects/show.html.haml
+1
-1
features/steps/admin/admin_projects.rb
features/steps/admin/admin_projects.rb
+0
-2
spec/features/admin/admin_projects_spec.rb
spec/features/admin/admin_projects_spec.rb
+0
-42
No files found.
app/views/admin/projects/show.html.haml
View file @
c610347c
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
=
link_to
project_team_index_path
(
@project
),
class:
"btn btn-tiny"
do
=
link_to
project_team_index_path
(
@project
),
class:
"btn btn-tiny"
do
%i
.icon-edit
%i
.icon-edit
Edit Team
Edit Team
%ul
.well-list
%ul
.well-list
.team_members
-
@project
.
users
.
each
do
|
tm
|
-
@project
.
users
.
each
do
|
tm
|
%li
%li
%strong
%strong
...
...
features/steps/admin/admin_projects.rb
View file @
c610347c
...
@@ -16,9 +16,7 @@ class AdminProjects < Spinach::FeatureSteps
...
@@ -16,9 +16,7 @@ class AdminProjects < Spinach::FeatureSteps
Then
'I should see project details'
do
Then
'I should see project details'
do
project
=
Project
.
first
project
=
Project
.
first
current_path
.
should
==
admin_project_path
(
project
)
current_path
.
should
==
admin_project_path
(
project
)
page
.
should
have_content
(
project
.
name_with_namespace
)
page
.
should
have_content
(
project
.
name_with_namespace
)
page
.
should
have_content
(
project
.
creator
.
name
)
page
.
should
have_content
(
project
.
creator
.
name
)
page
.
should
have_content
(
'Add new team member'
)
end
end
end
end
spec/features/admin/admin_projects_spec.rb
View file @
c610347c
...
@@ -31,46 +31,4 @@ describe "Admin::Projects" do
...
@@ -31,46 +31,4 @@ describe "Admin::Projects" do
page
.
should
have_content
(
@project
.
name
)
page
.
should
have_content
(
@project
.
name
)
end
end
end
end
describe
"GET /admin/projects/:id/edit"
do
before
do
visit
admin_projects_path
click_link
"edit_project_
#{
@project
.
id
}
"
end
it
"should have project edit page"
do
page
.
should
have_content
(
"Edit project"
)
page
.
should
have_button
(
"Save Project"
)
end
describe
"Update project"
do
before
do
fill_in
"project_name"
,
with:
"Big Bang"
click_button
"Save Project"
@project
.
reload
end
it
"should show page with new data"
do
page
.
should
have_content
(
"Big Bang"
)
end
it
"should change project entry"
do
@project
.
name
.
should
==
"Big Bang"
end
end
end
describe
"Add new team member"
do
before
do
@new_user
=
create
(
:user
)
visit
admin_project_path
(
@project
)
end
it
"should create new user"
do
select
@new_user
.
name
,
from:
"user_ids"
expect
{
click_button
"Add"
}.
to
change
{
UsersProject
.
count
}.
by
(
1
)
page
.
should
have_content
@new_user
.
name
current_path
.
should
==
admin_project_path
(
@project
)
end
end
end
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