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

Version Path
social_networking-0.13.3 spec/mailers/social_networking/mailer_spec.rb
social_networking-0.13.2 spec/mailers/social_networking/mailer_spec.rb
social_networking-0.13.1 spec/mailers/social_networking/mailer_spec.rb
social_networking-0.13.0 spec/mailers/social_networking/mailer_spec.rb
social_networking-0.12.0 spec/mailers/social_networking/mailer_spec.rb