1 require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper'
2
3 class <%= class_name %>Test < ActionMailer::TestCase
4 tests <%= class_name %>
5 <% for action in actions -%>
6 def test_<%= action %>
7 @expected.subject = '<%= class_name %>#<%= action %>'
8 @expected.body = read_fixture('<%= action %>')
9 @expected.date = Time.now
10
11 assert_equal @expected.encoded, <%= class_name %>.create_<%= action %>(@expected.date).encoded
12 end
13
14 <% end -%>
15 <% if actions.blank? -%>
16 # replace this with your real tests
17 def test_truth
18 assert true
19 end
20 <% end -%>
21 end