Sha256: f51993916112f8276eff1f0eccc8a408f164691f1963b11d84813d88ccbfd06a
Contents?: true
Size: 1.89 KB
Versions: 6
Compression:
Stored size: 1.89 KB
Contents
require 'spec_helper' require 'howitzer/email' require 'howitzer/mail_adapters/abstract' RSpec.describe Howitzer::MailAdapters::Abstract do let(:recipient) { 'first_tester@gmail.com' } let(:message_subject) { 'test subject' } let(:message) { double(:message) } let(:abstract_adapter) { described_class.new(message) } let(:email_object) { Howitzer::Email.adapter.new(message) } describe '.find' do subject { described_class.find(recipient, message_subject, _wait: 10) } it { expect { subject }.to raise_error(NotImplementedError) } end describe '#new' do context 'when Email instance receive message and add create @message variable that' do it { expect(email_object.instance_variable_get(:@message)).to eql message } end end describe '#plain_text_body' do subject { abstract_adapter.plain_text_body } it { expect { subject }.to raise_error(NotImplementedError) } end describe '#html_body' do subject { abstract_adapter.html_body } it { expect { subject }.to raise_error(NotImplementedError) } end describe '#text' do subject { abstract_adapter.text } it { expect { subject }.to raise_error(NotImplementedError) } end describe '#mail_from' do subject { abstract_adapter.mail_from } it { expect { subject }.to raise_error(NotImplementedError) } end describe '#recipients' do subject { abstract_adapter.recipients } it { expect { subject }.to raise_error(NotImplementedError) } end describe '#received_time' do subject { abstract_adapter.received_time } it { expect { subject }.to raise_error(NotImplementedError) } end describe '#sender_email' do subject { abstract_adapter.sender_email } it { expect { subject }.to raise_error(NotImplementedError) } end describe '#mime_part' do subject { abstract_adapter.mime_part } it { expect { subject }.to raise_error(NotImplementedError) } end end
Version data entries
6 entries across 6 versions & 1 rubygems