aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2010-07-14 21:18:37 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2010-07-19 17:15:10 +0200
commitd26bc1536bb34cab8c425784d594fc723f6cf504 (patch)
treebccc65e27bfa2d2699d9806b10762ad7504be5d5 /features
parentFeature covering reference answers and fixes needed to pass them (diff)
downloadrecruiting-webapp-d26bc1536bb34cab8c425784d594fc723f6cf504.tar.gz
recruiting-webapp-d26bc1536bb34cab8c425784d594fc723f6cf504.tar.bz2
recruiting-webapp-d26bc1536bb34cab8c425784d594fc723f6cf504.zip
Feature covering mentor approval for answers and necessary fixes
Diffstat (limited to 'features')
-rw-r--r--features/approve_answers.feature27
1 files changed, 27 insertions, 0 deletions
diff --git a/features/approve_answers.feature b/features/approve_answers.feature
new file mode 100644
index 0000000..a4a9185
--- /dev/null
+++ b/features/approve_answers.feature
@@ -0,0 +1,27 @@
+Feature: Approving recruit answers
+ As mentor
+ I want to be able to approve and disapprove answers of my recruits
+ So they will know if they should work more on them
+
+ Scenario: Mentor approves and then disapproves text answer of his/her recruit
+ Given I am logged in as mentor with two recruits who answered some questions
+ When I am on the homepage
+ And I follow "answers"
+ And I follow "Answer of recruit1 for q1"
+ Then I should see "Not approved"
+
+ When I follow "(Edit)"
+ And I check "answer[approved]"
+ And I press "Save"
+ Then I should see "Changes to the answer were saved" within ".flash.notice"
+
+ When I am on the homepage
+ And I follow "answers"
+ And I follow "Answer of recruit1 for q1"
+ Then I should see "Approved"
+
+ When I follow "(Edit)"
+ And I uncheck "answer[approved]"
+ And I press "Save"
+ Then I should see "Changes to the answer were saved" within ".flash.notice"
+ Then I should see "Not approved"