1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix broken Mailbox generator test

Follow up to d082439cf7
This commit is contained in:
yuuji.yaginuma 2018-12-28 17:29:40 +09:00
parent d082439cf7
commit e4b6495fd1

View file

@ -38,7 +38,7 @@ class MailboxGeneratorTest < Rails::Generators::TestCase
assert_file "test/mailboxes/inceptions/inbox_mailbox_test.rb" do |mailbox|
assert_match(/class Inceptions::InboxMailboxTest < ActionMailbox::TestCase/, mailbox)
assert_match(/# test "receive mail" do/, mailbox)
assert_match(/# to: '"someone" <someone@example.com>,/, mailbox)
assert_match(/# to: '"someone" <someone@example.com>',/, mailbox)
end
assert_file "app/mailboxes/application_mailbox.rb" do |mailbox|
@ -62,7 +62,7 @@ class MailboxGeneratorTest < Rails::Generators::TestCase
assert_file "test/mailboxes/inbox_mailbox_test.rb" do |test|
assert_match(/class InboxMailboxTest < ActionMailbox::TestCase/, test)
assert_match(/# test "receive mail" do/, test)
assert_match(/# to: '"someone" <someone@example.com>,/, test)
assert_match(/# to: '"someone" <someone@example.com>',/, test)
end
end