2007-02-09 09:04:31 +01:00
|
|
|
require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper'
|
2007-01-22 14:43:50 +01:00
|
|
|
|
2007-12-21 08:48:59 +01:00
|
|
|
class <%= class_name %>Test < ActionMailer::TestCase
|
|
|
|
tests <%= class_name %>
|
2007-01-22 14:43:50 +01:00
|
|
|
<% for action in actions -%>
|
|
|
|
def test_<%= action %>
|
|
|
|
@expected.subject = '<%= class_name %>#<%= action %>'
|
|
|
|
@expected.body = read_fixture('<%= action %>')
|
|
|
|
@expected.date = Time.now
|
|
|
|
|
|
|
|
assert_equal @expected.encoded, <%= class_name %>.create_<%= action %>(@expected.date).encoded
|
|
|
|
end
|
|
|
|
|
|
|
|
<% end -%>
|
2007-12-21 08:48:59 +01:00
|
|
|
<% if actions.blank? -%>
|
|
|
|
# replace this with your real tests
|
|
|
|
def test_truth
|
|
|
|
assert true
|
|
|
|
end
|
|
|
|
<% end -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
end
|