Sha256: dff766a5390666eab09715573426bb2e0f2a64ebf5a17f999e258ecd722bf695
Contents?: true
Size: 711 Bytes
Versions: 1
Compression:
Stored size: 711 Bytes
Contents
require 'spec_helper' describe Macaco::Messages do describe '#send_message' do subject do data = { message: { text: 'Boom boom', html: ''' <h1>My email title</h1> <p>My email body</p> <small>Monkey Corp Ltd</small> ''', subject: 'Test subject', from_email: 'james@jamesduncombe.com', to: [{ email: 'james@jamesduncombe.com' }] } } Macaco.configure do |config| config.api_key = ENV['MANDRILL_API_KEY'] end Macaco::Messages.send_message(data) end it { subject.must_be_kind_of Array } it { subject.first['status'].must_equal 'sent' } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
macaco-0.0.1 | spec/lib/macaco/messages_spec.rb |