add more test to main preocess

This commit is contained in:
szpyxlwoni
2012-11-20 14:09:18 +08:00
parent f6462a3296
commit ad555bcb0a
2 changed files with 20 additions and 1 deletions
+4 -1
View File
@@ -6,4 +6,7 @@ Feature: Main process of Ocelots
Scenario: Go to home page
Given I am an existing user
When I login
Then I see list of teams
Then I see list of teams
Then I should create a team
Then I should quit that team
Then I should join that team again
+16
View File
@@ -8,4 +8,20 @@ end
Then /^I see list of teams$/ do
should be_on TeamPage
end
Then /^I should create a team$/ do
click_link 'add team'
fill_in 'Team Name', with: 'Test_team'
fill_in 'URL', with: 'Test_URL'
click_button 'Create'
end
Then /^I should quit that team$/ do
click_button 'Quit Team'
end
Then /^I should join that team again$/ do
visit '/teams/Test_URL'
click_button 'Join Team'
end