diff options
author | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-07-29 17:36:20 +0200 |
---|---|---|
committer | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-07-29 18:42:05 +0200 |
commit | 5115549f869e391592da1a0628fa3cad5a694fe9 (patch) | |
tree | 118801be64927394ec78082419de1c48a31d5f25 /features | |
parent | <view> for CheckList now checks if user can view it (diff) | |
download | recruiting-webapp-5115549f869e391592da1a0628fa3cad5a694fe9.tar.gz recruiting-webapp-5115549f869e391592da1a0628fa3cad5a694fe9.tar.bz2 recruiting-webapp-5115549f869e391592da1a0628fa3cad5a694fe9.zip |
Properly show 'Answer it!' links
Diffstat (limited to 'features')
-rw-r--r-- | features/clean_ui.feature | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/features/clean_ui.feature b/features/clean_ui.feature index 86928fe..d0051cf 100644 --- a/features/clean_ui.feature +++ b/features/clean_ui.feature @@ -59,3 +59,22 @@ Feature: Clean UI And I follow "Question Categories" And I follow "category" Then I should see "No questions to display" + + Scenario: I should not see double Answer it + Given a question "question" + When I am logged in as "recruit" + And I am on show "question" question page + Then I should see "Answer it" + And I should not see /Answer it(?m:.*)Answer it/ + + Scenario: I should not see Answer it as Guest + Given a question "question" + When I am on show "question" question page + Then I should not see "Answer it" + + Scenario: I should not see Answer it when I answered question + Given a question "question" + And "recruit" answered question "question" + When I am logged in as "recruit" + When I am on show "question" question page + Then I should not see "Answer it" |