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

Version Path
postmark-rails-0.22.1 spec/integration/batch_delivery_spec.rb
postmark-rails-0.22.0 spec/integration/batch_delivery_spec.rb
postmark-rails-0.21.0 spec/integration/batch_delivery_spec.rb
postmark-rails-0.20.0 spec/integration/batch_delivery_spec.rb
postmark-rails-0.19.0 spec/integration/batch_delivery_spec.rb
postmark-rails-0.18.0 spec/integration/batch_delivery_spec.rb
postmark-rails-0.17.0 spec/integration/batch_delivery_spec.rb
postmark-rails-0.16.0 spec/integration/batch_delivery_spec.rb
postmark-rails-0.15.0 spec/integration/batch_delivery_spec.rb
postmark-rails-0.14.0 spec/integration/batch_delivery_spec.rb
postmark-rails-0.13.0 spec/integration/batch_delivery_spec.rb
postmark-rails-0.12.0 spec/integration/batch_delivery_spec.rb
postmark-rails-0.11.0 spec/integration/batch_delivery_spec.rb
postmark-rails-0.10.0 spec/integration/batch_delivery_spec.rb
postmark-rails-0.9.0 spec/integration/batch_delivery_spec.rb
postmark-rails-0.8.0 spec/integration/batch_delivery_spec.rb
postmark-rails-0.7.0 spec/integration/batch_delivery_spec.rb
postmark-rails-0.6.0 spec/integration/batch_delivery_spec.rb
postmark-rails-0.5.2 spec/integration/batch_delivery_spec.rb
postmark-rails-0.5.1 spec/integration/batch_delivery_spec.rb