aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2010-07-20 20:48:07 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2010-07-21 20:07:55 +0200
commit83a57b6fa38520f210f55906829f0f31fe82b298 (patch)
treeb91d3b59a5602e881e942bc547c8788839ebf8b0 /features
parentShow recruits progress on their view pages (diff)
downloadrecruiting-webapp-83a57b6fa38520f210f55906829f0f31fe82b298.tar.gz
recruiting-webapp-83a57b6fa38520f210f55906829f0f31fe82b298.tar.bz2
recruiting-webapp-83a57b6fa38520f210f55906829f0f31fe82b298.zip
Allow viewing listings of answers of other users
Diffstat (limited to 'features')
-rw-r--r--features/question_listing.feature3
-rw-r--r--features/support/paths.rb3
-rw-r--r--features/user_progress.feature16
3 files changed, 18 insertions, 4 deletions
diff --git a/features/question_listing.feature b/features/question_listing.feature
index 28e5bcb..0e1c02b 100644
--- a/features/question_listing.feature
+++ b/features/question_listing.feature
@@ -5,7 +5,8 @@ Feature: Viewing question listings
Scenario: View listing of all questions I should answer
Given I am logged in as recruit with some answered and unanswered questions
- When I am on all my questions page
+ When I am on the homepage
+ And I follow "All questions you should answer(including answered)."
Then I should see following:
|q1|q3|q4|
And I should not see "q2"
diff --git a/features/support/paths.rb b/features/support/paths.rb
index c6f2aa2..d35fb62 100644
--- a/features/support/paths.rb
+++ b/features/support/paths.rb
@@ -38,9 +38,6 @@ module NavigationHelpers
when /project acceptance of "([^\"]*)" by "([^\"]*)" edit page/
edit_project_acceptance_path(ProjectAcceptance.find_by_user_name_and_accepting_nick($1, $2))
- when /all my questions page/
- my_questions_questions_path
-
when /my answered questions page/
answered_questions_questions_path
diff --git a/features/user_progress.feature b/features/user_progress.feature
index e5910e3..7de1d69 100644
--- a/features/user_progress.feature
+++ b/features/user_progress.feature
@@ -15,3 +15,19 @@ Feature: Recruits progress
When I am on the homepage
And I follow "recruit"
Then I should see "Answered 2 of 3 questions."
+
+ Scenario: View list of users questions
+ Given following questions:
+ |question 1|category 1|
+ |question 2|category 1|
+ |question 3|category 2|
+ And recruit "recruit" in following categories:
+ |category 1|category 2|
+ And user "recruit" answered all questions in "category 1"
+ And I am logged in as "recruiter" who is "recruiter"
+ When I am on the homepage
+ And I follow "recruit"
+ And I follow "Questions user should answer"
+ Then I should see following:
+ |question 1 answered|question 2 answered|question 3|
+