Tests for team and group descriptions added

This commit is contained in:
Andrew8xx8 2013-02-19 23:01:57 +04:00
parent 9959669f1c
commit cf6d9a2222
5 changed files with 14 additions and 0 deletions

View file

@ -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)