Sha256: 2b94d21fcc4999bde83d0b466daed6aafb4619784b64667156a81b28a7255141

Contents?: true

Size: 353 Bytes

Versions: 3

Compression:

Stored size: 353 Bytes

Contents

require 'rails_helper'

RSpec.describe EmailPrefixer::Interceptor do
  describe '#delivering_email' do
    before do
      ExampleMailer.simple_mail.deliver
    end
    it 'adds prefix to delivered mail subject' do
      mail = ActionMailer::Base.deliveries.last
      expect(mail.subject).to eq '[CustomApp TEST] Here is the Subject'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
email_prefixer-1.0.2 spec/lib/email_prefixer/interceptor_spec.rb
email_prefixer-1.0.1 spec/lib/email_prefixer/interceptor_spec.rb
email_prefixer-1.0.0 spec/lib/email_prefixer/interceptor_spec.rb