Sha256: dd6fdb19829dfd69f27aceea70e8a8a4236dc612028a5649c21bfd14aa0381a9

Contents?: true

Size: 527 Bytes

Versions: 313

Compression:

Stored size: 527 Bytes

Contents

require 'test_helper'

<% module_namespacing do -%>
class <%= class_name %>Test < ActionMailer::TestCase
<% actions.each do |action| -%>
  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

313 entries across 270 versions & 27 rubygems

Version Path
railties-4.2.11.3 lib/rails/generators/test_unit/mailer/templates/functional_test.rb
railties-4.2.11.2 lib/rails/generators/test_unit/mailer/templates/functional_test.rb
railties-4.2.11.1 lib/rails/generators/test_unit/mailer/templates/functional_test.rb
railties-4.2.11 lib/rails/generators/test_unit/mailer/templates/functional_test.rb
railties-4.2.10 lib/rails/generators/test_unit/mailer/templates/functional_test.rb
railties-4.2.10.rc1 lib/rails/generators/test_unit/mailer/templates/functional_test.rb
railties-4.2.9 lib/rails/generators/test_unit/mailer/templates/functional_test.rb
railties-4.2.9.rc2 lib/rails/generators/test_unit/mailer/templates/functional_test.rb
railties-4.2.9.rc1 lib/rails/generators/test_unit/mailer/templates/functional_test.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/railties-4.2.8/lib/rails/generators/test_unit/mailer/templates/functional_test.rb
railties-4.2.8 lib/rails/generators/test_unit/mailer/templates/functional_test.rb
railties-4.2.8.rc1 lib/rails/generators/test_unit/mailer/templates/functional_test.rb
railties-3.2.22.5 lib/rails/generators/test_unit/mailer/templates/functional_test.rb
railties-3.2.22.4 lib/rails/generators/test_unit/mailer/templates/functional_test.rb
railties-4.2.7.1 lib/rails/generators/test_unit/mailer/templates/functional_test.rb
railties-3.2.22.3 lib/rails/generators/test_unit/mailer/templates/functional_test.rb
railties-4.2.7 lib/rails/generators/test_unit/mailer/templates/functional_test.rb
railties-4.1.16 lib/rails/generators/test_unit/mailer/templates/functional_test.rb
railties-4.1.16.rc1 lib/rails/generators/test_unit/mailer/templates/functional_test.rb
railties-4.2.7.rc1 lib/rails/generators/test_unit/mailer/templates/functional_test.rb