Sha256: 943c43fcb6a8a1e63afd95f927db378c62e09cf0cf9e0ffd6ae11493685dfb0d

Contents?: true

Size: 593 Bytes

Versions: 16

Compression:

Stored size: 593 Bytes

Contents

require "test_helper"

<% module_namespacing do -%>
class <%= class_name %>MailerTest < ActionMailer::TestCase
<% actions.each_with_index do |action, index| -%>
<% if index != 0 -%>

<% end -%>
  test "<%= action %>" do
    mail = <%= class_name %>Mailer.<%= 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

16 entries across 16 versions & 2 rubygems

Version Path
railties-8.0.0 lib/rails/generators/test_unit/mailer/templates/functional_test.rb.tt
railties-7.2.2 lib/rails/generators/test_unit/mailer/templates/functional_test.rb.tt
railties-8.0.0.rc2 lib/rails/generators/test_unit/mailer/templates/functional_test.rb.tt
railties-7.2.1.2 lib/rails/generators/test_unit/mailer/templates/functional_test.rb.tt
railties-8.0.0.rc1 lib/rails/generators/test_unit/mailer/templates/functional_test.rb.tt
railties-7.2.1.1 lib/rails/generators/test_unit/mailer/templates/functional_test.rb.tt
railties-8.0.0.beta1 lib/rails/generators/test_unit/mailer/templates/functional_test.rb.tt
omg-railties-8.0.0.alpha9 lib/rails/generators/test_unit/mailer/templates/functional_test.rb.tt
omg-railties-8.0.0.alpha8 lib/rails/generators/test_unit/mailer/templates/functional_test.rb.tt
omg-railties-8.0.0.alpha7 lib/rails/generators/test_unit/mailer/templates/functional_test.rb.tt
omg-railties-8.0.0.alpha4 lib/rails/generators/test_unit/mailer/templates/functional_test.rb.tt
omg-railties-8.0.0.alpha3 lib/rails/generators/test_unit/mailer/templates/functional_test.rb.tt
railties-7.2.1 lib/rails/generators/test_unit/mailer/templates/functional_test.rb.tt
railties-7.2.0 lib/rails/generators/test_unit/mailer/templates/functional_test.rb.tt
railties-7.2.0.rc1 lib/rails/generators/test_unit/mailer/templates/functional_test.rb.tt
railties-7.2.0.beta3 lib/rails/generators/test_unit/mailer/templates/functional_test.rb.tt