diff options
author | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2011-05-31 13:12:07 +0200 |
---|---|---|
committer | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2011-06-01 13:46:51 +0200 |
commit | 4e31553a3b85871e8f7305b1e1ffb931bba0a82d (patch) | |
tree | a2672d902bac9cb21816b8ac1fce0b85a483d258 | |
parent | Show question content when creating or editing answer (diff) | |
download | recruiting-webapp-4e31553a3b85871e8f7305b1e1ffb931bba0a82d.tar.gz recruiting-webapp-4e31553a3b85871e8f7305b1e1ffb931bba0a82d.tar.bz2 recruiting-webapp-4e31553a3b85871e8f7305b1e1ffb931bba0a82d.zip |
Don't show (Not available) card on answer pages
The application showed (Not available) card when someone viewed answer
for question with no reference answer. Then the reference answer was
nil. Anyone could view nil, but it was shown as (Not available) card. Fix bug:
https://bugs.gentoo.org/show_bug.cgi?id=368179
-rw-r--r-- | app/views/taglibs/detailed.dryml | 2 | ||||
-rw-r--r-- | features/clean_ui.feature | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/app/views/taglibs/detailed.dryml b/app/views/taglibs/detailed.dryml index ceb8dc9..f36882a 100644 --- a/app/views/taglibs/detailed.dryml +++ b/app/views/taglibs/detailed.dryml @@ -31,7 +31,7 @@ </div> <with:question.reference_answer param="reference-answer"> - <card if="&can_view?"> + <card if="& this and can_view?"> <header:> <h5>Reference answer:</h5> </header:> diff --git a/features/clean_ui.feature b/features/clean_ui.feature index f475abf..df2ec9f 100644 --- a/features/clean_ui.feature +++ b/features/clean_ui.feature @@ -101,3 +101,10 @@ Feature: Clean UI Then I should see "Enter one requirement per line." And I should see "Each requirement should be 'Field : regexp to match' (including spaces around colon)." And I should see "If you want to use colon in field and regexp then escape it with backslash." + + Scenario: Don't show '(Not Available)' on the answer page + Given a question "question" + And "recruit" answered question "question" + When I am logged in as "recruit" + And I am on answer of "recruit" for question "question" page + Then I should not see "(Not Available)" |