Sha256: a21c8035223746eeeacbe34b6315036ca78d866722003fdbcbdf84ef666159a4
Contents?: true
Size: 988 Bytes
Versions: 1
Compression:
Stored size: 988 Bytes
Contents
require "spec_helper" describe MailCannon::Barrel do describe "perform" do let(:envelope) { create(:envelope) } it "creates a new Stamp" do VCR.use_cassette('mailcannon_barrel_envelope_post') do expect{ envelope.post! }.to change{envelope.stamps.size}.by(1) end expect(envelope.stamps.first.code).to eq(0) # 0=posted end it "looks for an existing MongoDB document" do VCR.use_cassette('mailcannon_barrel_envelope_post') do Sidekiq::Testing.inline! do expect{envelope.post!}.not_to raise_error end end end it "runs the job without errors" do VCR.use_cassette('mailcannon_barrel_envelope_post') do Sidekiq::Testing.inline! do expect{envelope.post!}.not_to raise_error end end end context "check for expected adapter behavior" do it "implements send! behavior" do expect(envelope.respond_to?(:send!)).to be_true end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mailcannon-0.1.1 | spec/mailcannon/workers/barrel_spec.rb |