Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 458b6a7fc9
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (19 sloc) 0.563 kb
require 'test_helper'
class <%= class_name %>Test < ActionMailer::TestCase
<% for action in actions -%>
test "<%= action %>" do
@expected.subject = <%= action.to_s.humanize.inspect %>
@expected.to = "to@example.org"
@expected.from = "from@example.com"
@expected.body = read_fixture("<%= action %>")
@expected.date = Time.now
assert_equal @expected, <%= class_name %>.<%= action %>
end
<% end -%>
<% if actions.blank? -%>
# replace this with your real tests
test "the truth" do
assert true
end
<% end -%>
end
Jump to Line
Something went wrong with that request. Please try again.