Sha256: 9e701a5284ae32ffe99927d8211717b0228d7d8096b7d98374c72a30e8f9f2a8
Contents?: true
Size: 518 Bytes
Versions: 2
Compression:
Stored size: 518 Bytes
Contents
require "spec_helper" describe MailCannon::Adapter::Sendgrid do describe "#send!" do let(:envelope) { build(:envelope) } it "sends http request for Sendgrid web API" do VCR.use_cassette('mailcannon_adapter_sendgrid_send') do expect(envelope.send!).to eq({"message"=>"success"}) end end it "calls after_sent callback" do VCR.use_cassette('mailcannon_adapter_sendgrid_send') do envelope.should_receive(:after_sent) envelope.send! end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mailcannon-0.0.3 | spec/mailcannon/adapters/sendgrid_spec.rb |
mailcannon-0.0.2 | spec/mailcannon/adapters/sendgrid_spec.rb |