Permalink
Browse files

Let users know that they can use markdown in answers

  • Loading branch information...
1 parent f47ebb2 commit b852c3bd9b16563a919e8839285f633b1695466b @ahenobarbi committed Sep 28, 2011
@@ -0,0 +1,17 @@
+# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better
+# Copyright (C) 2010 Joachim Filip Bartosik
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, version 3 of the License
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+class AnswerHints < Hobo::ViewHints
+ field_help :content => 'You can use markdown in your answer.'
+end
@@ -143,3 +143,8 @@ Feature: Clean UI
When I am on unanswered questions page
Then I should not see /There are \d+/
+ Scenario: Let users know that they should use markdown
+ Given I am logged in as "recruit" who is "recruit"
+ And a question "question"
+ When I am on answer "question" question page
+ Then I should see "You can use markdown in your answer." as hint
@@ -1,5 +1,6 @@
{
'as a role' => '.role-tag.view.user-role',
+ 'as hint' => '.input-help',
'as question content' => '.view.question-content'
}.
each do |within, selector|
@@ -53,6 +53,9 @@ def path_to(page_name)
when /show "([^\"]*)" question page/
question_path(Question.find_by_title($1))
+ when /answer "([^\"]*)" question page/
+ new_answer_for_question_path(Question.find_by_title($1))
+
when /new email question content for "([^\"]*)" page/
new_question_content_email_for_question_path(Question.find_by_title($1))
# Add more mappings here.

0 comments on commit b852c3b

Please sign in to comment.