Sha256: 28015694a6752aaf662f767a2f9217f92aceb75f4e3428912b3c5e14896d097a

Contents?: true

Size: 473 Bytes

Versions: 2

Compression:

Stored size: 473 Bytes

Contents

require "spec_helper"

describe NotifiableOrderMailer do
  describe "close_notification_to_responsible" do
    let(:mail) { NotifiableOrderMailer.close_notification_to_responsible }

    it "renders the headers" do
      mail.subject.should eq("Close notification to responsible")
      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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
canmoia-0.0.2 spec/dummy/spec/mailers/notifiable_order_mailer_spec.rb~
canmoia-0.0.1 spec/dummy/spec/mailers/notifiable_order_mailer_spec.rb~