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

Version Path
wordjelly-auth-1.6.0 spec/dummy/spec/mailers/new_spec.rb
wordjelly-auth-1.5.9 spec/dummy/spec/mailers/new_spec.rb
wordjelly-auth-1.5.8 spec/dummy/spec/mailers/new_spec.rb
wordjelly-auth-1.5.7 spec/dummy/spec/mailers/new_spec.rb
wordjelly-auth-1.5.6 spec/dummy/spec/mailers/new_spec.rb
wordjelly-auth-1.5.5 spec/dummy/spec/mailers/new_spec.rb
wordjelly-auth-1.5.4 spec/dummy/spec/mailers/new_spec.rb
wordjelly-auth-1.5.3 spec/dummy/spec/mailers/new_spec.rb
wordjelly-auth-1.5.2 spec/dummy/spec/mailers/new_spec.rb
wordjelly-auth-1.5.1 spec/dummy/spec/mailers/new_spec.rb
wordjelly-auth-1.5.0 spec/dummy/spec/mailers/new_spec.rb
wordjelly-auth-1.4.9 spec/dummy/spec/mailers/new_spec.rb
wordjelly-auth-1.4.8 spec/dummy/spec/mailers/new_spec.rb
wordjelly-auth-1.4.7 spec/dummy/spec/mailers/new_spec.rb
wordjelly-auth-1.4.6 spec/dummy/spec/mailers/new_spec.rb
wordjelly-auth-1.4.5 spec/dummy/spec/mailers/new_spec.rb
wordjelly-auth-1.4.4 spec/dummy/spec/mailers/new_spec.rb
wordjelly-auth-1.4.3 spec/dummy/spec/mailers/new_spec.rb
wordjelly-auth-1.4.2 spec/dummy/spec/mailers/new_spec.rb
wordjelly-auth-1.4.0 spec/dummy/spec/mailers/new_spec.rb