summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2014-05-03 03:33:09 +0200
committerjomo <github@jomo.tv>2014-05-03 03:33:09 +0200
commite0b154059341d58c12448634940e2b1fc8449493 (patch)
tree8407cdc7b4feb99ee1cb39d3a7fae5ab3943730d /test
parent4130216e11a8c318ca51c3c1652546e17696049a (diff)
add info mail for new blog comments
Diffstat (limited to 'test')
-rw-r--r--test/mailers/previews/registration_preview.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/mailers/previews/registration_preview.rb b/test/mailers/previews/registration_preview.rb
index 597d6d6..a7e9443 100644
--- a/test/mailers/previews/registration_preview.rb
+++ b/test/mailers/previews/registration_preview.rb
@@ -17,11 +17,18 @@ class RegistrationPreview < ActionMailer::Preview
RedstonerMailer.register_info_mail(@@user, true)
end
- def thread_reply_mail
+ def new_thread_reply_mail
op = User.new(id: 32, name: "TheOP", email: "theopuser@example.com")
thread = Forumthread.new(id: 123, user_author: op, title: "Wow, test thread!", content: "You should not see this...")
reply = Threadreply.new(id: 312, user_author: @@user, content: "# Markdown!\n\n`incline code`\n\n<b>html?</b>\n\n[yt:abcd1234]\n\n[link](/forums)", forumthread: thread)
- RedstonerMailer.thread_reply_mail(@@user, reply)
+ RedstonerMailer.new_thread_reply_mail(@@user, reply)
+ end
+
+ def new_post_comment_mail
+ op = User.new(id: 32, name: "TheOP", email: "theopuser@example.com")
+ post = Blogpost.new(id: 123, user_author: op, title: "Wow, test post!", content: "You should not see this...")
+ comment = Comment.new(id: 312, user_author: @@user, content: "Wow, that is **cool**!", blogpost: post)
+ RedstonerMailer.new_post_comment_mail(@@user, comment)
end
def email_change_confirm_mail