summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2014-04-30 02:35:54 +0200
committerjomo <github@jomo.tv>2014-04-30 02:35:54 +0200
commit85a2938443433b42bcfd05d8acc4c96048f33159 (patch)
tree33458a4354a3cb447cf3e5dbdf021f99b484c87c /test
parentc109f8d23a8338625af2463deb35bbb5210e8d95 (diff)
thread reply emails! also a few mail bugfixes
Diffstat (limited to 'test')
-rw-r--r--test/mailers/previews/registration_preview.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/mailers/previews/registration_preview.rb b/test/mailers/previews/registration_preview.rb
index 140c277..087ac20 100644
--- a/test/mailers/previews/registration_preview.rb
+++ b/test/mailers/previews/registration_preview.rb
@@ -16,4 +16,11 @@ class RegistrationPreview < ActionMailer::Preview
def register_info_mail_idiot
RedstonerMailer.register_info_mail(@@user, true)
end
+
+ def 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)
+ end
end \ No newline at end of file