aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/taglibs/detailed.dryml2
-rw-r--r--features/clean_ui.feature7
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)"