Skip to content

Commit 8a541e7

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

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
@@ -383,6 +383,10 @@ def test_message_posted_message_id
383383
end
384384
end
385385

386+
def test_message_posted_should_include_recipients_on_mail_footer
387+
flunk 'Not Implemented'
388+
end
389+
386390
def test_reply_posted_message_id
387391
set_tmp_attachments_directory
388392
message = Message.find(3)
@@ -704,6 +708,12 @@ def test_document_added_should_include_recipients_on_mail_footer
704708
end
705709
end
706710

711+
def test_documents_file_added_should_include_recipients_on_mail_footer
712+
# def test_attachments_added_should_include_recipients_on_mail_footer
713+
# Mailer.deliver_attachments_added(document, author)
714+
flunk 'Not Implemented'
715+
end
716+
707717
def test_issue_should_send_email_notification_with_suppress_empty_fields
708718
ActionMailer::Base.deliveries.clear
709719
with_settings :notified_events => %w(issue_added) do
@@ -754,6 +764,11 @@ def test_version_file_added
754764
end
755765
end
756766

767+
def test_version_file_added_should_include_recipients_on_mail_footer
768+
# def test_attachments_added_should_include_recipients_on_mail_footer
769+
flunk 'Not Implemented'
770+
end
771+
757772
def test_project_file_added
758773
attachements = [Attachment.find_by_container_type('Project')]
759774
assert Mailer.deliver_attachments_added(attachements)
@@ -764,6 +779,11 @@ def test_project_file_added
764779
end
765780
end
766781

782+
def test_project_file_added_should_include_recipients_on_mail_footer
783+
# def test_attachments_added_should_include_recipients_on_mail_footer
784+
flunk 'Not Implemented'
785+
end
786+
767787
def test_news_added_should_notify_project_news_watchers
768788
set_tmp_attachments_directory
769789
user1 = User.generate!
@@ -788,6 +808,14 @@ def test_news_added_should_notify_project_news_watchers
788808
end
789809
end
790810

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

845+
def test_wiki_content_added_should_include_recipients_on_mail_footer
846+
flunk 'Not Implemented'
847+
end
848+
817849
def test_wiki_content_updated
818850
content = WikiContent.find(1)
819851
assert Mailer.deliver_wiki_content_updated(content)
@@ -839,6 +871,10 @@ def test_wiki_content_updated_should_notify_mentioned_users_in_updated_content
839871
assert_include User.find(1).mail, recipients
840872
end
841873

874+
def test_wiki_content_updated_should_include_recipients_on_mail_footer
875+
flunk 'Not Implemented'
876+
end
877+
842878
def test_register
843879
token = Token.find(1)
844880
assert Mailer.deliver_register(token.user, token)
@@ -849,6 +885,10 @@ def test_register
849885
end
850886
end
851887

888+
def test_account_activation_request_should_include_recipients_on_mail_footer
889+
flunk 'Not Implemented'
890+
end
891+
852892
def test_test_email_later
853893
user = User.find(1)
854894
assert Mailer.test_email(user).deliver_later
@@ -1092,6 +1132,16 @@ def test_security_notification_should_include_link
10921132
end
10931133
end
10941134

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

0 commit comments

Comments
 (0)