Sha256: bb69e58814704b8c83f5d431d1aff16518d57d102c4215f4387e7995d832b4ce

Contents?: true

Size: 488 Bytes

Versions: 3

Compression:

Stored size: 488 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'
require 'ditty/emails/forgot_password'
require 'mail'

describe ::Ditty::Emails::ForgotPassword do
  let(:mail) do
    mail = Mail.new
    allow(mail).to receive(:deliver!)
    mail
  end

  describe '.new' do
    it 'defaults to base options' do
      expect(subject.options).to include subject: 'Request to reset password', from: 'no-reply@ditty.io',
                                         view: :forgot_password
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ditty-0.11.1 spec/ditty/emails/forgot_password_spec.rb
ditty-0.10.2 spec/ditty/emails/forgot_password_spec.rb
ditty-0.10.1 spec/ditty/emails/forgot_password_spec.rb