Sha256: b36bc9aeee2990cf37500e7782d4a68e987e09852829e1c0c0a1d2093e46979e
Contents?: true
Size: 558 Bytes
Versions: 54
Compression:
Stored size: 558 Bytes
Contents
require "spec_helper" 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
Version data entries
54 entries across 49 versions & 4 rubygems