Sha256: fd311d6431b8f92dd101c9243a3f42fde98d31396a8d202f8e56df5d36e8f4d1

Contents?: true

Size: 561 Bytes

Versions: 4

Compression:

Stored size: 561 Bytes

Contents

require 'spec_helper'

describe HttpMailer do

  context "when configured" do
    let(:settings){ {:mailgun => {:host => "api.mailgun.net", :api_key => "12345", :subdomain => "sandbox12345.mailgun.org"},
                    :sendgrid => {:host => "sendgrid.com", :api_user=> "test", :api_key => "1234"},
                    :mandrill => {:host => "mandrillapp.com", :api_key => "1234567890"}} }

    describe ".client" do
      it "creates a client instance" do
        expect(HttpMailer.client(settings)).to be_a HttpMailer::Client
      end
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
http_mailer-1.0.0 spec/http_mailer_spec.rb
http_mailer-0.0.5 spec/http_mailer_spec.rb
http_mailer-0.0.4 spec/http_mailer_spec.rb
http_mailer-0.0.3 spec/http_mailer_spec.rb