Sha256: 2e8134699a6cfaf95ce192b14cc0ee802db33e577935035a6514ab2fe51449e8
Contents?: true
Size: 507 Bytes
Versions: 11
Compression:
Stored size: 507 Bytes
Contents
require "minitest_helper" <% module_namespacing do -%> describe <%= class_name %> do <% actions.each do |action| -%> it "<%= action %>" do mail = <%= class_name %>.<%= action %> mail.subject.must_equal <%= action.to_s.humanize.inspect %> mail.to.must_equal ["to@example.org"] mail.from.must_equal ["from@example.com"] 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
11 entries across 11 versions & 1 rubygems