Skip to content

Commit 2bed25e

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

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
@@ -753,6 +763,11 @@ def test_version_file_added
753763
end
754764
end
755765

766+
def test_version_file_added_should_include_recipients_on_mail_footer
767+
# def test_attachments_added_should_include_recipients_on_mail_footer
768+
flunk 'Not Implemented'
769+
end
770+
756771
def test_project_file_added
757772
attachements = [Attachment.find_by_container_type('Project')]
758773
assert Mailer.deliver_attachments_added(attachements)
@@ -763,6 +778,11 @@ def test_project_file_added
763778
end
764779
end
765780

781+
def test_project_file_added_should_include_recipients_on_mail_footer
782+
# def test_attachments_added_should_include_recipients_on_mail_footer
783+
flunk 'Not Implemented'
784+
end
785+
766786
def test_news_added_should_notify_project_news_watchers
767787
set_tmp_attachments_directory
768788
user1 = User.generate!
@@ -787,6 +807,14 @@ def test_news_added_should_notify_project_news_watchers
787807
end
788808
end
789809

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

844+
def test_wiki_content_added_should_include_recipients_on_mail_footer
845+
flunk 'Not Implemented'
846+
end
847+
816848
def test_wiki_content_updated
817849
content = WikiContent.find(1)
818850
assert Mailer.deliver_wiki_content_updated(content)
@@ -838,6 +870,10 @@ def test_wiki_content_updated_should_notify_mentioned_users_in_updated_content
838870
assert_include User.find(1).mail, recipients
839871
end
840872

873+
def test_wiki_content_updated_should_include_recipients_on_mail_footer
874+
flunk 'Not Implemented'
875+
end
876+
841877
def test_register
842878
token = Token.find(1)
843879
assert Mailer.deliver_register(token.user, token)
@@ -848,6 +884,10 @@ def test_register
848884
end
849885
end
850886

887+
def test_account_activation_request_should_include_recipients_on_mail_footer
888+
flunk 'Not Implemented'
889+
end
890+
851891
def test_test_email_later
852892
user = User.find(1)
853893
assert Mailer.test_email(user).deliver_later
@@ -1091,6 +1131,16 @@ def test_security_notification_should_include_link
10911131
end
10921132
end
10931133

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

0 commit comments

Comments
 (0)