@@ -510,28 +510,28 @@ def different_layout(layout_name='')
510
510
511
511
# Rendering
512
512
test "you can specify a different template for implicit render" do
513
- mail = BaseMailer . implicit_different_template ( 'implicit_multipart' )
513
+ mail = BaseMailer . implicit_different_template ( 'implicit_multipart' ) . deliver
514
514
assert_equal ( "HTML Implicit Multipart" , mail . html_part . body . decoded )
515
515
assert_equal ( "TEXT Implicit Multipart" , mail . text_part . body . decoded )
516
516
end
517
517
518
518
test "you can specify a different template for explicit render" do
519
- mail = BaseMailer . explicit_different_template ( 'explicit_multipart_templates' )
519
+ mail = BaseMailer . explicit_different_template ( 'explicit_multipart_templates' ) . deliver
520
520
assert_equal ( "HTML Explicit Multipart Templates" , mail . html_part . body . decoded )
521
521
assert_equal ( "TEXT Explicit Multipart Templates" , mail . text_part . body . decoded )
522
522
end
523
523
524
524
test "you can specify a different layout" do
525
- mail = BaseMailer . different_layout ( 'different_layout' )
525
+ mail = BaseMailer . different_layout ( 'different_layout' ) . deliver
526
526
assert_equal ( "HTML -- HTML" , mail . html_part . body . decoded )
527
527
assert_equal ( "PLAIN -- PLAIN" , mail . text_part . body . decoded )
528
528
end
529
529
530
530
test "you can specify the template path for implicit lookup" do
531
- mail = BaseMailer . welcome_from_another_path ( 'another.path/base_mailer' )
531
+ mail = BaseMailer . welcome_from_another_path ( 'another.path/base_mailer' ) . deliver
532
532
assert_equal ( "Welcome from another path" , mail . body . encoded )
533
533
534
- mail = BaseMailer . welcome_from_another_path ( [ 'unknown/invalid' , 'another.path/base_mailer' ] )
534
+ mail = BaseMailer . welcome_from_another_path ( [ 'unknown/invalid' , 'another.path/base_mailer' ] ) . deliver
535
535
assert_equal ( "Welcome from another path" , mail . body . encoded )
536
536
end
537
537
0 commit comments