Sha256: 6e895e42f757322f9926203c88e284f77d02e134e1b97b2063b40c06f247a046
Contents?: true
Size: 520 Bytes
Versions: 10
Compression:
Stored size: 520 Bytes
Contents
require 'test_helper' <% module_namespacing do -%> class <%= class_name %>Test < ActiveSupport::TestCase <% if actions.blank? -%> # test 'the truth' do # assert true # end <% else -%> <% actions.each do |action| -%> test '<%= action %>' do message = <%= class_name %>.<%= action %> email = message.email assert_equal '<%= action.to_s.humanize %>', email.subject assert_equal ['from@example.com'], email.from assert_match 'Hi', email.body.encoded end <% end -%> <% end -%> end <% end -%>
Version data entries
10 entries across 10 versions & 1 rubygems