Gentoo Archives: gentoo-commits

From: "Petteri Räty" <betelgeuse@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/recruiting-webapp:master commit in: features/, app/views/questions/
Date: Mon, 01 Aug 2011 14:19:55
Message-Id: 4dc2cfe2c05bae37f12940584eec183e0c304581.betelgeuse@gentoo
1 commit: 4dc2cfe2c05bae37f12940584eec183e0c304581
2 Author: Joachim Filip Ignacy Bartosik <jbartosik <AT> gmail <DOT> com>
3 AuthorDate: Sat Jul 23 19:03:30 2011 +0000
4 Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 23 19:03:30 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/recruiting-webapp.git;a=commit;h=4dc2cfe2
7
8 Don't show wrong unanswered questions count
9
10 Fix bug:
11
12 https://bugs.gentoo.org/show_bug.cgi?id=355909
13
14 ---
15 app/views/questions/unanswered_questions.dryml | 1 +
16 features/clean_ui.feature | 13 ++++++++++++-
17 2 files changed, 13 insertions(+), 1 deletions(-)
18
19 diff --git a/app/views/questions/unanswered_questions.dryml b/app/views/questions/unanswered_questions.dryml
20 index 46fb4e3..29789b6 100644
21 --- a/app/views/questions/unanswered_questions.dryml
22 +++ b/app/views/questions/unanswered_questions.dryml
23 @@ -1,4 +1,5 @@
24 <index-page>
25 + <count:></count:>
26 <content-body:>
27 <repeat with="&current_user.unanswered_questions">
28 <card/>
29
30 diff --git a/features/clean_ui.feature b/features/clean_ui.feature
31 index 053b5b1..0c4ce1f 100644
32 --- a/features/clean_ui.feature
33 +++ b/features/clean_ui.feature
34 @@ -126,9 +126,20 @@ Feature: Clean UI
35 And user "mentor2" is mentor of "recruit"
36 Then I should see explanation that I can't become mentor for "recruit"
37
38 -
39 Scenario: Don't show "recruit this recruit" button on non-recruit pages
40 Given I am logged in as "recruiter" who is "recruiter"
41 And user "recruiter2" who is "recruiter"
42 When I am on show "recruiter2" user page
43 Then I should not see tag <input class="button submit-button" type="submit" value="Start mentoring this recruit">
44 +
45 + Scenario: Don't show wrong question count on unanswered questions page
46 + Given I am logged in as "recruit" who is "recruit"
47 + And following questions:
48 + |q1|cat1|
49 + |q2|cat1|
50 + And user "recruit" has category "cat1"
51 + And answer of "recruit" for question "q1"
52 +
53 + When I am on unanswered questions page
54 + Then I should not see /There are \d+/
55 +