Sha256: 54b54377c3b2097290c8779d104bdd5fe67426c90177b8f843aa9b1f8706ebc3
Contents?: true
Size: 598 Bytes
Versions: 15
Compression:
Stored size: 598 Bytes
Contents
require "spec_helper" <% module_namespacing do -%> describe <%= class_name %> do <% for action in actions -%> describe "<%= action %>" do let(:mail) { <%= class_name %>.<%= action %> } it "renders the headers" do mail.subject.should eq(<%= action.to_s.humanize.inspect %>) mail.to.should eq(["to@example.org"]) mail.from.should eq(["from@example.com"]) end it "renders the body" do mail.body.encoded.should match("Hi") end end <% end -%> <% if actions.blank? -%> pending "add some examples to (or delete) #{__FILE__}" <% end -%> end <% end -%>
Version data entries
15 entries across 15 versions & 2 rubygems