diff options
author | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-06-23 11:32:26 +0200 |
---|---|---|
committer | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-06-24 22:32:32 +0200 |
commit | 8922487a577a3258819d9329550efde326b136bc (patch) | |
tree | 0e373f0159e44ab30b05d62630966e9510b8e254 /features/support | |
parent | Mentor demoting to recruit (diff) | |
download | recruiting-webapp-8922487a577a3258819d9329550efde326b136bc.tar.gz recruiting-webapp-8922487a577a3258819d9329550efde326b136bc.tar.bz2 recruiting-webapp-8922487a577a3258819d9329550efde326b136bc.zip |
Support for mentor comments
Generated Comment model and CommentsController.
Added relation (answer has many comments, comment belongs to answer).
Added email notification when new comment is created.
This commit includes also schema change and tests.
Diffstat (limited to 'features/support')
-rw-r--r-- | features/support/paths.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/features/support/paths.rb b/features/support/paths.rb index e8d8a09..3d34dd6 100644 --- a/features/support/paths.rb +++ b/features/support/paths.rb @@ -22,6 +22,15 @@ module NavigationHelpers when /unanswered questions page/ unanswered_questions_questions_path + + when /answer of "([^\"]*)" for question "([^\"]*)" page/ + answer_path(Question.find_by_title($2).answer_of(User.find_by_name($1))) + + when /new comment for answer of "([^\"]*)" for question "([^\"]*)"/ + new_comment_for_answer_path(Question.find_by_title($2).answer_of(User.find_by_name($1))) + + when /newest comment page/ + comment_path(Comment.last) # Add more mappings here. # Here is an example that pulls values out of the Regexp: # |