Sha256: d34fb31f9292c901449371df0f5640d37ed15f33ce1dee2d0b67d82ea85b7dd6
Contents?: true
Size: 501 Bytes
Versions: 20
Compression:
Stored size: 501 Bytes
Contents
require 'spec_helper' describe 'Delivering emails in batches' do let(:api_client) { Postmark::ApiClient.new('POSTMARK_API_TEST') } let(:messages) { [TestMailer.simple_message, TestMailer.tagged_message, TestMailer.multipart_message, TestMailer.message_with_attachment] } it 'delivers messages in batches' do expect { api_client.deliver_messages(messages) }. to change{messages.all? { |m| m.delivered?} }.to true end end
Version data entries
20 entries across 20 versions & 1 rubygems