Sha256: 866a963e4c0d6ca5910d06a2ba16c41d94915f78c6918b6f5b8b18a4ef6630cf
Contents?: true
Size: 516 Bytes
Versions: 42
Compression:
Stored size: 516 Bytes
Contents
require 'test_helper' 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? -%> # replace this with your real tests test "the truth" do assert true end <% end -%> end
Version data entries
42 entries across 42 versions & 1 rubygems