diff options
-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+/ + |