Sha256: 2487cc7e00cc3e41cfac810fd25fd506bfcd5efc78d23a55e19d0f0d15ceade6
Contents?: true
Size: 427 Bytes
Versions: 57
Compression:
Stored size: 427 Bytes
Contents
require "rails_helper" RSpec.describe New, type: :mailer do describe "send_notification" do let(:mail) { New.send_notification } it "renders the headers" do expect(mail.subject).to eq("Send notification") expect(mail.to).to eq(["to@example.org"]) expect(mail.from).to eq(["from@example.com"]) end it "renders the body" do expect(mail.body.encoded).to match("Hi") end end end
Version data entries
57 entries across 57 versions & 1 rubygems