aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2010-06-24 15:07:46 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2010-06-25 19:39:42 +0200
commitc2634a954af3c5e0cc99eb53f33eb73b03c70bd5 (patch)
treed2817245d97eb1bcf321d57dd3cdea1d8c11a3d2 /features
parentRewrite seed to make it cleaner (diff)
downloadrecruiting-webapp-c2634a954af3c5e0cc99eb53f33eb73b03c70bd5.tar.gz
recruiting-webapp-c2634a954af3c5e0cc99eb53f33eb73b03c70bd5.tar.bz2
recruiting-webapp-c2634a954af3c5e0cc99eb53f33eb73b03c70bd5.zip
Users can list their contributions, mentors can find for recruits with no mentor
Diffstat (limited to 'features')
-rw-r--r--features/request_mentor.feature23
1 files changed, 23 insertions, 0 deletions
diff --git a/features/request_mentor.feature b/features/request_mentor.feature
new file mode 100644
index 0000000..b192d16
--- /dev/null
+++ b/features/request_mentor.feature
@@ -0,0 +1,23 @@
+Feature: Request Mentor
+ As a recruit
+ I want to use the webapp to apply for a mentor
+ so that I will get assigned one
+
+ Scenario: Listing contributions
+ Given I am logged in as "recruit"
+ And I am on edit "recruit" user page
+ When I fill in "user[contributions]" with "some contributions"
+ And I press "Save"
+ Then I should see "Changes to your account were saved" within ".flash.notice"
+ And I should see "some contributions" within ".contributions-tag.view.user-contributions"
+
+ Scenario: Unassigned Recruit listing for Mentors
+ Given I am logged in as "mentor" who is "mentor"
+ And user "recruit1" who is "recruit"
+ And user "recruit2" who is "recruit"
+ And user "mentor" is mentor of "recruit3"
+ When I am on the home page
+ And I follow "See mentorless recruits"
+ Then I should see "recruit1" within ".collection.users"
+ And I should see "recruit1" within ".collection.users"
+ But I should not see "recruit3" within ".collection.users"