Class: ActionMailerWithinPluginsTest
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- ActionMailerWithinPluginsTest
- Defined in:
- vendor/plugins/engines/test/unit/action_mailer_test.rb
Instance Method Summary
- - (Object) test_plugin_mailer_template_overriding
- - (Object) test_should_be_able_to_create_a_multipart_mail_from_within_plugin
- - (Object) test_should_be_able_to_create_mails_from_plugin
- - (Object) test_should_be_able_to_overload_views_within_the_application
Instance Method Details
- (Object) test_plugin_mailer_template_overriding
50 51 52 53 |
# File 'vendor/plugins/engines/test/unit/action_mailer_test.rb', line 50 def test_plugin_mailer_template_overriding m = PluginMail.create_multipart_from_plugin_with_application_template assert_equal 'plugin mail template loaded from application', m.parts[1].body end |
- (Object) test_should_be_able_to_create_a_multipart_mail_from_within_plugin
43 44 45 46 47 48 |
# File 'vendor/plugins/engines/test/unit/action_mailer_test.rb', line 43 def test_should_be_able_to_create_a_multipart_mail_from_within_plugin m = PluginMail.create_multipart_from_plugin assert_equal 2, m.parts.length assert_equal 'html template', m.parts[0].body assert_equal 'plain template', m.parts[1].body end |
- (Object) test_should_be_able_to_create_mails_from_plugin
33 34 35 36 |
# File 'vendor/plugins/engines/test/unit/action_mailer_test.rb', line 33 def test_should_be_able_to_create_mails_from_plugin m = PluginMail.create_mail_from_plugin("from_plugin") assert_equal "from_plugin", m.body end |
- (Object) test_should_be_able_to_overload_views_within_the_application
38 39 40 41 |
# File 'vendor/plugins/engines/test/unit/action_mailer_test.rb', line 38 def test_should_be_able_to_overload_views_within_the_application m = PluginMail.create_mail_from_plugin_with_application_template("from_plugin") assert_equal "from_plugin (from application)", m.body end |