Skip to content

Instantly share code, notes, and snippets.

@ryanbriones
Created October 23, 2008 04:55
Show Gist options
  • Save ryanbriones/18923 to your computer and use it in GitHub Desktop.
Save ryanbriones/18923 to your computer and use it in GitHub Desktop.
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