Permalink
Browse files

add more test to main preocess

  • Loading branch information...
1 parent f6462a3 commit ad555bcb0a3afc3ed2ee7533d35b9020c0ab6e3c @szpyxlwoni szpyxlwoni committed Nov 20, 2012
Showing with 20 additions and 1 deletion.
  1. +4 −1 features/main_process.feature
  2. +16 −0 features/step_definitions/main_process.rb
@@ -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
@@ -8,4 +8,20 @@
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

0 comments on commit ad555bc

Please sign in to comment.