Sha256: 23b20d14388eb70ae5c412c182d2e122e763444ae170c013c333d2728e685daa
Contents?: true
Size: 524 Bytes
Versions: 1
Compression:
Stored size: 524 Bytes
Contents
require 'test_helper' <% module_namespacing do -%> class <%= class_name %>Test < ActionMailer::TestCase <% for action in actions -%> test "<%= action %>" do mail = <%= class_name %>.<%= action %> assert_equal <%= action.to_s.humanize.inspect %>, mail.subject assert_equal ["to@example.org"], mail.to assert_equal ["from@example.com"], mail.from assert_match "Hi", mail.body.encoded end <% end -%> <% if actions.blank? -%> # test "the truth" do # assert true # end <% end -%> end <% end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
railties-3.1.0.beta1 | lib/rails/generators/test_unit/mailer/templates/functional_test.rb |