Sha256: cf8d2bb50ae22819617dc2f6d9984933fde2e0f727f367ac20d82b4adccbf9d9

Contents?: true

Size: 510 Bytes

Versions: 16

Compression:

Stored size: 510 Bytes

Contents

require "spec_helper"
require 'mail'

module GhostInThePost
  describe Automatic do
    let(:email) { Mail.new(to: "foo@example.com", from: "me@example.com") }
    let(:instance) { AutoMailer.new(email) }
    describe "#mail" do
      it "should return an email" do
        expect(instance.mail).to be_kind_of(Mail::Message)
      end
      it "should return an email extended with GhostOnCommand and GhostOnDelivery" do
        expect(instance.mail).to be_kind_of(GhostOnDelivery)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ghost_in_the_post-0.1.4 spec/lib/ghost_in_the_post/automatic_spec.rb
ghost_in_the_post-0.1.3 spec/lib/ghost_in_the_post/automatic_spec.rb
ghost_in_the_post-0.1.2 spec/lib/ghost_in_the_post/automatic_spec.rb
ghost_in_the_post-0.1.0 spec/lib/ghost_in_the_post/automatic_spec.rb
ghost_in_the_post-0.0.14 spec/lib/ghost_in_the_post/automatic_spec.rb
ghost_in_the_post-0.0.13 spec/lib/ghost_in_the_post/automatic_spec.rb
ghost_in_the_post-0.0.12 spec/lib/ghost_in_the_post/automatic_spec.rb
ghost_in_the_post-0.0.11 spec/lib/ghost_in_the_post/automatic_spec.rb
ghost_in_the_post-0.0.10 spec/lib/ghost_in_the_post/automatic_spec.rb
ghost_in_the_post-0.0.9 spec/lib/ghost_in_the_post/automatic_spec.rb
ghost_in_the_post-0.0.8 spec/lib/ghost_in_the_post/automatic_spec.rb
ghost_in_the_post-0.0.7 spec/lib/ghost_in_the_post/automatic_spec.rb
ghost_in_the_post-0.0.6 spec/lib/ghost_in_the_post/automatic_spec.rb
ghost_in_the_post-0.0.5 spec/lib/ghost_in_the_post/automatic_spec.rb
ghost_in_the_post-0.0.4 spec/lib/ghost_in_the_post/automatic_spec.rb
ghost_in_the_post-0.0.3 spec/lib/ghost_in_the_post/automatic_spec.rb