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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
cf6d9a22
Commit
cf6d9a22
authored
Feb 19, 2013
by
Andrew8xx8
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests for team and group descriptions added
parent
9959669f
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
0 deletions
+14
-0
features/steps/admin/admin_groups.rb
features/steps/admin/admin_groups.rb
+2
-0
features/steps/admin/admin_teams.rb
features/steps/admin/admin_teams.rb
+2
-0
features/steps/group/group.rb
features/steps/group/group.rb
+2
-0
features/steps/userteams/userteams.rb
features/steps/userteams/userteams.rb
+7
-0
features/teams/team.feature
features/teams/team.feature
+1
-0
No files found.
features/steps/admin/admin_groups.rb
View file @
cf6d9a22
...
...
@@ -25,11 +25,13 @@ class AdminGroups < Spinach::FeatureSteps
And
'submit form with new group info'
do
fill_in
'group_name'
,
:with
=>
'gitlab'
fill_in
'group_description'
,
:with
=>
'Group description'
click_button
"Create group"
end
Then
'I should see newly created group'
do
page
.
should
have_content
"Group: gitlab"
page
.
should
have_content
"Group description"
end
Then
'I should be redirected to group page'
do
...
...
features/steps/admin/admin_teams.rb
View file @
cf6d9a22
...
...
@@ -18,6 +18,7 @@ class AdminTeams < Spinach::FeatureSteps
And
'submit form with new team info'
do
fill_in
'user_team_name'
,
with:
'gitlab'
fill_in
'user_team_description'
,
with:
'description'
click_button
'Create team'
end
...
...
@@ -27,6 +28,7 @@ class AdminTeams < Spinach::FeatureSteps
And
'I should see newly created team'
do
page
.
should
have_content
"Team: gitlab"
page
.
should
have_content
"description"
end
When
'I visit admin teams page'
do
...
...
features/steps/group/group.rb
View file @
cf6d9a22
...
...
@@ -70,11 +70,13 @@ class Groups < Spinach::FeatureSteps
And
'submit form with new group info'
do
fill_in
'group_name'
,
:with
=>
'Samurai'
fill_in
'group_description'
,
:with
=>
'Tokugawa Shogunate'
click_button
"Create group"
end
Then
'I should see newly created group'
do
page
.
should
have_content
"Samurai"
page
.
should
have_content
"Tokugawa Shogunate"
page
.
should
have_content
"You will only see events from projects in this group"
end
...
...
features/steps/userteams/userteams.rb
View file @
cf6d9a22
...
...
@@ -44,9 +44,16 @@ class Userteams < Spinach::FeatureSteps
And
'I submit form with new team info'
do
fill_in
'name'
,
with:
'gitlab'
fill_in
'user_team_description'
,
with:
'team description'
click_button
'Create team'
end
And
'I should see newly created team'
do
page
.
should
have_content
"gitlab"
page
.
should
have_content
"team description"
end
Then
'I should be redirected to new team page'
do
team
=
UserTeam
.
last
current_path
.
should
==
team_path
(
team
)
...
...
features/teams/team.feature
View file @
cf6d9a22
...
...
@@ -20,6 +20,7 @@ Feature: UserTeams
When
I click to
"New team"
link
And
I submit form with new team info
Then
I should be redirected to new team page
Then
I should see newly created team
Scenario
:
I
should see team dashboard list
When
I have teams with projects and members
...
...
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