Sha256: 5a717e5480d5c8d7a5bb776f479a64af04086c4f4d192c8b900ecc05a552414c
Contents?: true
Size: 422 Bytes
Versions: 9
Compression:
Stored size: 422 Bytes
Contents
require "rails_helper" RSpec.describe LashaMailer do let(:email) { LashaMailer.notify("destination@email.com", "subject", "body text") } it "renders the headers" do expect(email.subject).to eq("subject") expect(email.to).to eq(["destination@email.com"]) expect(email.from).to eq(["from@email.com"]) end it "renders the body" do expect(email.body.encoded).to match("body text") end end
Version data entries
9 entries across 9 versions & 1 rubygems