2019-02-20 10:18:15 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-08-29 03:56:52 -04:00
|
|
|
require 'spec_helper'
|
2019-02-20 10:18:15 -05:00
|
|
|
|
|
|
|
describe EmailRejectionMailer do
|
|
|
|
include EmailSpec::Matchers
|
|
|
|
|
|
|
|
describe '#rejection' do
|
|
|
|
let(:raw_email) { 'From: someone@example.com\nraw email here' }
|
|
|
|
|
|
|
|
subject { described_class.rejection('some rejection reason', raw_email) }
|
|
|
|
|
|
|
|
it_behaves_like 'appearance header and footer enabled'
|
|
|
|
it_behaves_like 'appearance header and footer not enabled'
|
|
|
|
end
|
|
|
|
end
|