Sha256: 351e1f9d22f5510552c0b32902abbfa17623379463e445916e5246e8ee1d77a7
Contents?: true
Size: 718 Bytes
Versions: 1
Compression:
Stored size: 718 Bytes
Contents
require "spec_helper" require 'mail' module GhostInThePost describe GhostOnCommand do let(:instance) { SomeMailer.new(Mail.new(to: "foo@example.com", from: "me@example.com")) } let(:email) {instance.mail} describe "#ghost" do it "Should return a Message" do expect(email.ghost).to be_a(Mail::Message) end it "should create a MailGhost" do email.included_scripts = ["test"] expect(MailGhost).to receive(:new).with(email, ["test"]).and_call_original email.ghost end it "should apply included scripts to the mail ghost" do expect(email).to receive(:included_scripts).and_call_original email.ghost end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ghost_in_the_post-0.0.1 | spec/lib/ghost_in_the_post/ghost_on_command_spec.rb |