debian-mirror-gitlab/spec/mailers/email_rejection_mailer_spec.rb
2020-08-09 17:44:08 +05:30

16 lines
431 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.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