Created
October 23, 2008 04:55
-
-
Save ryanbriones/18923 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyMailerClassTest < ActionMailer::TestCase | |
def test_should_render_special_template_under_circumstance | |
mailer = MyMailerClass.send(:new, 'mailer_method') # new('mailer_method') is a short cut for new.create!('mailer_method') | |
assert_equal 'special_template.html.erb', mailer.template | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment