Merge branch 'team-and-group-descriptions' of https://github.com/Undev/gitlabhq into Undev-team-and-group-descriptions
Conflicts: db/schema.rb
This commit is contained in:
commit
5c3cb47c16
26 changed files with 155 additions and 45 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -69,12 +69,14 @@ class Groups < Spinach::FeatureSteps
|
|||
end
|
||||
|
||||
And 'submit form with new group info' do
|
||||
fill_in 'group_name', :with => 'Samurai'
|
||||
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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue