diff options
author | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-07-14 20:50:33 +0200 |
---|---|---|
committer | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-07-19 17:15:10 +0200 |
commit | eb9cbe1b545e323eab650960559460641b90a953 (patch) | |
tree | e13b6c23e158311a937822afce2b36e7821903cf /features/reference_answers.feature | |
parent | Feature for viewing answers of recruits (diff) | |
download | recruiting-webapp-eb9cbe1b545e323eab650960559460641b90a953.tar.gz recruiting-webapp-eb9cbe1b545e323eab650960559460641b90a953.tar.bz2 recruiting-webapp-eb9cbe1b545e323eab650960559460641b90a953.zip |
Feature covering reference answers and fixes needed to pass them
Diffstat (limited to 'features/reference_answers.feature')
-rw-r--r-- | features/reference_answers.feature | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/features/reference_answers.feature b/features/reference_answers.feature new file mode 100644 index 0000000..944a196 --- /dev/null +++ b/features/reference_answers.feature @@ -0,0 +1,45 @@ +Feature: Reference answers + As recruiter + I want to be able to record and edit reference answers + So answers of recruits can be compared against them + And Recruits can get instant feedback on their answers for multiple choice questions + + Scenario: Record reference answer for text question and edit it as different recruiter + Given I am logged in as "recruiter1" who is "recruiter" + And text content "some question?" for question "question" + When I am on show "question" question page + And I follow "Answer it" + And I check "answer[reference]" + And I fill in "some answer" for "answer[content]" + And I press "Create Answer" + Then I should see "The answer was created successfully" within ".flash.notice" + + When I follow "Log out" + And I am logged in as "other-recruiter" who is "recruiter" + And I am on show "question" question page + And I follow "View reference answer" + And I follow "(Edit)" + And I fill in "some other answer" for "answer[content]" + And I press "Save" + Then I should see "Changes to the answer were saved" within ".flash.notice" + + Scenario: Record reference answer for multiple choice question and edit it as different recruiter + Given I am logged in as "recruiter1" who is "recruiter" + And a multiple choice content "Chose some" for "question" + And following options for "question": + |Opt 1|Opt 2|Opt 3| + When I am on show "question" question page + And I follow "Answer it" + And I check "multiple_choice_answer[reference]" + And I check "Opt 1" + And I press "Create Answer" + Then I should see "The multiple choice answer was created successfully" within ".flash.notice" + + When I follow "Log out" + And I am logged in as "other-recruiter" who is "recruiter" + And I am on show "question" question page + And I follow "View reference answer" + And I follow "(Edit)" + And I check "Opt 2" + And I press "Save" + Then I should see "Changes to the multiple choice answer were saved" within ".flash.notice" |