Sha256: 7696b2484dfee251e2b174f8c3985a5e181f6e9212115d0c549e26fb95d0b768
Contents?: true
Size: 716 Bytes
Versions: 2
Compression:
Stored size: 716 Bytes
Contents
require 'spec_helper' describe Mailstro do describe ".configure" do it "allows you to pass a block to configure Mailstro" do Mailstro.configure do |config| config.endpoint = 'mailstro.dev' end Mailstro.configuration.endpoint.should == 'mailstro.dev' end end describe ".delivery" do let(:template) { "name" } let(:recipient) { { :email => "foo@bar.com" } } let(:payload) { { :data => "here" } } it "creates a delivery object and delivers it" do Mailstro::Delivery.should_receive(:deliver).with(template, :recipient => recipient, :payload => payload) Mailstro.deliver(template, :recipient => recipient, :payload => payload) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mailstro-0.0.2 | spec/mailstro_spec.rb |
mailstro-0.0.1 | spec/mailstro_spec.rb |