aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2010-07-07 11:11:20 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2010-07-12 19:17:11 +0200
commiteeb8448766d00776516a71367bf8fb3a09cc8ece (patch)
treefb0933b9ddde57662b8b7962f6039962df7239b5 /features/recruits_who_answered_all_questions.feature
parentAllow users to suggest questions (diff)
downloadrecruiting-webapp-eeb8448766d00776516a71367bf8fb3a09cc8ece.tar.gz
recruiting-webapp-eeb8448766d00776516a71367bf8fb3a09cc8ece.tar.bz2
recruiting-webapp-eeb8448766d00776516a71367bf8fb3a09cc8ece.zip
User may view and answer only one randomly chosen question from group
When adding user to category associate user with one question from each group in this category. Feature to make sure question listings are correct.
Diffstat (limited to 'features/recruits_who_answered_all_questions.feature')
-rw-r--r--features/recruits_who_answered_all_questions.feature27
1 files changed, 27 insertions, 0 deletions
diff --git a/features/recruits_who_answered_all_questions.feature b/features/recruits_who_answered_all_questions.feature
index 7d7ccc0..d5861c0 100644
--- a/features/recruits_who_answered_all_questions.feature
+++ b/features/recruits_who_answered_all_questions.feature
@@ -23,3 +23,30 @@ Feature: Viewing recruits who answered all questions
When I am on the home page
And I follow "Recruits that answered all questions"
Then I should be on ready recruits page
+
+ Scenario: Recruit that answered assigned and ungrouped questions is ready
+ Given following questions:
+ |q1|cat1|grp1|
+ |q2|cat1|grp1|
+ And following questions:
+ |q3|cat1|
+ |q4|cat1|
+ And user "recruit" is associated with question "q1"
+ And answer of "recruit" for question "q1"
+ And user "recruit" has category "cat1"
+ And user "recruit" answered all questions in "cat1"
+ When I am on ready recruits page
+ Then I should see "recruit" within ".user .collection"
+
+ Scenario: Recruit that answered didn't answer assigned grouped question isn't ready
+ Given following questions:
+ |q1|cat1|grp1|
+ |q2|cat1|grp1|
+ And following questions:
+ |q3|cat1|
+ |q4|cat1|
+ And user "recruit" is associated with question "q1"
+ And user "recruit" has category "cat1"
+ And user "recruit" answered all questions in "cat1"
+ When I am on ready recruits page
+ Then I should see "No users to display" within ".empty-collection-message"