From e6a17027c55ab3ded54b282685aab264318c7c7e Mon Sep 17 00:00:00 2001 From: Joachim Filip Ignacy Bartosik Date: Sat, 23 Jul 2011 19:51:52 +0200 Subject: Show links to answers on user questions listing Fix bug: https://bugs.gentoo.org/show_bug.cgi?id=355721 --- app/views/taglibs/cards.dryml | 4 ++-- features/question_listing.feature | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/app/views/taglibs/cards.dryml b/app/views/taglibs/cards.dryml index 16f96f4..6b144aa 100644 --- a/app/views/taglibs/cards.dryml +++ b/app/views/taglibs/cards.dryml @@ -2,8 +2,8 @@

- - answered + + answered (view answer)
diff --git a/features/question_listing.feature b/features/question_listing.feature index 0e1c02b..42e7129 100644 --- a/features/question_listing.feature +++ b/features/question_listing.feature @@ -43,3 +43,19 @@ Feature: Viewing question listings Then I should see "q3" And I should not see following: |q1|q2| + + + Scenario: On user page show links to answers + Given I am logged in as "recruiter" who is "recruiter" + And following questions: + |q1|cat1| + |q2|cat1| + And user "recruit" has category "cat1" + And answer of "recruit" for question "q1" + + When I am on show "recruit" user page + And I follow "Questions user should answer" + And I follow "view answer" + + Then I should be on answer of "recruit" for question "q1" page + -- cgit v1.2.3-65-gdbad