Sha256: f85164851807f0f7f3afa5a9448f4e89ba3cb7d3741d5d576a45f9cb18e60e38
Contents?: true
Size: 531 Bytes
Versions: 2
Compression:
Stored size: 531 Bytes
Contents
require "test_helper" <% module_namespacing do -%> describe <%= class_name %> do <% actions.each do |action| -%> it "<%= action %>" do mail = <%= class_name %>.<%= action %> value(mail.subject).must_equal <%= action.to_s.humanize.inspect %> value(mail.to).must_equal ["to@example.org"] value(mail.from).must_equal ["from@example.com"] value(mail.body.encoded).must_match "Hi" end <% end -%> <% if actions.blank? -%> it "must be a real test" do flunk "Need real tests" end <% end -%> end <% end -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
minitest-rails-2.2.1 | lib/generators/minitest/mailer/templates/mailer_spec.rb |
minitest-rails-2.2.0 | lib/generators/minitest/mailer/templates/mailer_spec.rb |