Sha256: 02196b621bc64fa1d60e0dea843da200ffecae2ed0691870b00772f1cdfa6d5c
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
require 'test_helper' <% module_namespacing do -%> class <%= class_name %>Test < MiniTest::Unit::TestCase # load_code_to_test_mailer <% actions.each do |action| -%> def test_<%= action %> 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? -%> # def test_truth # assert true # end <% end -%> end <% end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
minitest-rails-0.0.1 | lib/generators/minitest/mailer/templates/functional_test.rb |