2008-05-18 06:22:34 +02:00
|
|
|
require 'test_helper'
|
2007-01-22 14:43:50 +01:00
|
|
|
|
2007-12-21 08:48:59 +01:00
|
|
|
class <%= class_name %>Test < ActionMailer::TestCase
|
2007-01-22 14:43:50 +01:00
|
|
|
<% for action in actions -%>
|
2008-10-27 07:47:01 +01:00
|
|
|
test "<%= action %>" do
|
2007-01-22 14:43:50 +01:00
|
|
|
@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
|
2008-10-27 07:47:01 +01:00
|
|
|
test "the truth" do
|
2007-12-21 08:48:59 +01:00
|
|
|
assert true
|
|
|
|
end
|
|
|
|
<% end -%>
|
2007-01-22 14:43:50 +01:00
|
|
|
end
|