Sha256: 11d748c26755b8f3ea2c281a9e977513fe0ee1db7f26daf09432b6c32a8bbbe1

Contents?: true

Size: 706 Bytes

Versions: 4

Compression:

Stored size: 706 Bytes

Contents

require 'spec_helper'

describe HttpMailer::MandrillServiceHandler do
  
  describe "#send_message" do
    let(:settings){ {:host => "mandrillapp.com", :api_key => "1234567890"} }
    let(:mailer){ HttpMailer::MandrillServiceHandler.new(settings) }
    let(:from){ "papa@prose.com"}
    let(:from_name){ "Ernest Hemingway"}
    let(:to){ "jd@catcher.com" }
    let(:to_name){ "JD Salinger"}
    let(:subject){ "Hello" }
    let(:email_body){ "Congratulations, you just sent an email with Mandrill!  You are truly awesome!" }

    it 'sends an email message' do
      response = mailer.send_message(from, to, subject, email_body, from_name, to_name)
      expect(response.code).to eq(200)
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

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