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