From 83a57b6fa38520f210f55906829f0f31fe82b298 Mon Sep 17 00:00:00 2001 From: Joachim Filip Ignacy Bartosik Date: Tue, 20 Jul 2010 20:48:07 +0200 Subject: Allow viewing listings of answers of other users --- features/question_listing.feature | 3 ++- features/support/paths.rb | 3 --- features/user_progress.feature | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 4 deletions(-) (limited to 'features') 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| + -- cgit v1.2.3-65-gdbad