Sha256: 1d143cb887ff8372a13ca2b0b6d4eaa912d93b7330dfe7c991de9d9c9127504e
Contents?: true
Size: 501 Bytes
Versions: 5
Compression:
Stored size: 501 Bytes
Contents
# frozen_string_literal: true 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
5 entries across 5 versions & 1 rubygems