Sha256: ca80b8de5edf16f9ba6c3d77ce310387b19dc8feafe3f0a28972f77ab35ea175
Contents?: true
Size: 474 Bytes
Versions: 11
Compression:
Stored size: 474 Bytes
Contents
require "spec_helper" module SocialNetworking describe Mailer do describe ".notify" do let(:recipient) { instance_double(Participant, email: "obama@ex.co") } it "delivers an email" do expect do Mailer .notify( recipient: recipient, body: "foo", subject: "bar") .deliver_now end.to change { ActionMailer::Base.deliveries.count }.by(1) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems