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