diff options
author | 2011-07-23 21:03:30 +0200 | |
---|---|---|
committer | 2011-07-23 21:03:30 +0200 | |
commit | 4dc2cfe2c05bae37f12940584eec183e0c304581 (patch) | |
tree | 0af029e30d48a7e22aac65c56e0315aba17507ce | |
parent | Show links to answers on user questions listing (diff) | |
download | recruiting-webapp-4dc2cfe2c05bae37f12940584eec183e0c304581.tar.gz recruiting-webapp-4dc2cfe2c05bae37f12940584eec183e0c304581.tar.bz2 recruiting-webapp-4dc2cfe2c05bae37f12940584eec183e0c304581.zip |
Don't show wrong unanswered questions count
Fix bug:
https://bugs.gentoo.org/show_bug.cgi?id=355909
-rw-r--r-- | app/views/questions/unanswered_questions.dryml | 1 | ||||
-rw-r--r-- | features/clean_ui.feature | 13 |
2 files changed, 13 insertions, 1 deletions
diff --git a/app/views/questions/unanswered_questions.dryml b/app/views/questions/unanswered_questions.dryml index 46fb4e3..29789b6 100644 --- a/app/views/questions/unanswered_questions.dryml +++ b/app/views/questions/unanswered_questions.dryml @@ -1,4 +1,5 @@ <index-page> + <count:></count:> <content-body:> <repeat with="¤t_user.unanswered_questions"> <card/> diff --git a/features/clean_ui.feature b/features/clean_ui.feature index 053b5b1..0c4ce1f 100644 --- a/features/clean_ui.feature +++ b/features/clean_ui.feature @@ -126,9 +126,20 @@ Feature: Clean UI And user "mentor2" is mentor of "recruit" Then I should see explanation that I can't become mentor for "recruit" - Scenario: Don't show "recruit this recruit" button on non-recruit pages Given I am logged in as "recruiter" who is "recruiter" And user "recruiter2" who is "recruiter" When I am on show "recruiter2" user page Then I should not see tag <input class="button submit-button" type="submit" value="Start mentoring this recruit"> + + Scenario: Don't show wrong question count on unanswered questions page + Given I am logged in as "recruit" who is "recruit" + And following questions: + |q1|cat1| + |q2|cat1| + And user "recruit" has category "cat1" + And answer of "recruit" for question "q1" + + When I am on unanswered questions page + Then I should not see /There are \d+/ + |