Skip to content

Commit 8fd7cbb

Browse files
juno-nishizakiRedmine Patch Meetup
authored andcommitted
第23回 追加したメソッドのテストひな形を作成
1 parent 287485e commit 8fd7cbb

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

test/unit/mailer_test.rb

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,10 @@ def test_message_posted_message_id
382382
end
383383
end
384384

385+
def test_message_posted_should_include_recipients_on_mail_footer
386+
flunk 'Not Implemented'
387+
end
388+
385389
def test_reply_posted_message_id
386390
set_tmp_attachments_directory
387391
message = Message.find(3)
@@ -703,6 +707,12 @@ def test_document_added_should_include_recipients_on_mail_footer
703707
end
704708
end
705709

710+
def test_documents_file_added_should_include_recipients_on_mail_footer
711+
# def test_attachments_added_should_include_recipients_on_mail_footer
712+
# Mailer.deliver_attachments_added(document, author)
713+
flunk 'Not Implemented'
714+
end
715+
706716
def test_issue_should_send_email_notification_with_suppress_empty_fields
707717
ActionMailer::Base.deliveries.clear
708718
with_settings :notified_events => %w(issue_added) do
@@ -752,6 +762,11 @@ def test_version_file_added
752762
end
753763
end
754764

765+
def test_version_file_added_should_include_recipients_on_mail_footer
766+
# def test_attachments_added_should_include_recipients_on_mail_footer
767+
flunk 'Not Implemented'
768+
end
769+
755770
def test_project_file_added
756771
attachements = [Attachment.find_by_container_type('Project')]
757772
assert Mailer.deliver_attachments_added(attachements)
@@ -762,6 +777,11 @@ def test_project_file_added
762777
end
763778
end
764779

780+
def test_project_file_added_should_include_recipients_on_mail_footer
781+
# def test_attachments_added_should_include_recipients_on_mail_footer
782+
flunk 'Not Implemented'
783+
end
784+
765785
def test_news_added_should_notify_project_news_watchers
766786
set_tmp_attachments_directory
767787
user1 = User.generate!
@@ -786,6 +806,14 @@ def test_news_added_should_notify_project_news_watchers
786806
end
787807
end
788808

809+
def test_news_added_should_include_recipients_on_mail_footer
810+
flunk 'Not Implemented'
811+
end
812+
813+
def test_news_comments_added_should_include_recipients_on_mail_footer
814+
flunk 'Not Implemented'
815+
end
816+
789817
def test_wiki_content_added
790818
content = WikiContent.find(1)
791819
assert_difference 'ActionMailer::Base.deliveries.size', 2 do
@@ -812,6 +840,10 @@ def test_wiki_content_added_should_notify_mentioned_users_in_content
812840
assert_include User.find(1).mail, recipients
813841
end
814842

843+
def test_wiki_content_added_should_include_recipients_on_mail_footer
844+
flunk 'Not Implemented'
845+
end
846+
815847
def test_wiki_content_updated
816848
content = WikiContent.find(1)
817849
assert Mailer.deliver_wiki_content_updated(content)
@@ -837,6 +869,10 @@ def test_wiki_content_updated_should_notify_mentioned_users_in_updated_content
837869
assert_include User.find(1).mail, recipients
838870
end
839871

872+
def test_wiki_content_updated_should_include_recipients_on_mail_footer
873+
flunk 'Not Implemented'
874+
end
875+
840876
def test_register
841877
token = Token.find(1)
842878
assert Mailer.deliver_register(token.user, token)
@@ -847,6 +883,10 @@ def test_register
847883
end
848884
end
849885

886+
def test_account_activation_request_should_include_recipients_on_mail_footer
887+
flunk 'Not Implemented'
888+
end
889+
850890
def test_test_email_later
851891
user = User.find(1)
852892
assert Mailer.test_email(user).deliver_later
@@ -1090,6 +1130,16 @@ def test_security_notification_should_include_link
10901130
end
10911131
end
10921132

1133+
def test_security_notification_should_include_recipients_on_mail_footer
1134+
# 管理者を追加削除すると送信される
1135+
flunk 'Not Implemented'
1136+
end
1137+
1138+
def test_settings_updated_should_include_recipients_on_mail_footer
1139+
# リポジトリを変えると送信される
1140+
flunk 'Not Implemented'
1141+
end
1142+
10931143
def test_mailer_should_not_change_locale
10941144
# Set current language to italian
10951145
set_language_if_valid 'it'

0 commit comments

Comments
 (0)