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

Version Path
social_networking-0.11.8 spec/mailers/social_networking/mailer_spec.rb
social_networking-0.11.7 spec/mailers/social_networking/mailer_spec.rb
social_networking-0.11.6 spec/mailers/social_networking/mailer_spec.rb
social_networking-0.11.5 spec/mailers/social_networking/mailer_spec.rb
social_networking-0.11.4 spec/mailers/social_networking/mailer_spec.rb
social_networking-0.11.3 spec/mailers/social_networking/mailer_spec.rb
social_networking-0.11.2 spec/mailers/social_networking/mailer_spec.rb
social_networking-0.11.1 spec/mailers/social_networking/mailer_spec.rb
social_networking-0.11.0 spec/mailers/social_networking/mailer_spec.rb
social_networking-0.10.0 spec/mailers/social_networking/mailer_spec.rb
social_networking-0.9.3 spec/mailers/social_networking/mailer_spec.rb