Sha256: b74f3032db0c3a6879e3e8ae3a4cc6cdf13e73b1a6288805274216f98e6be5c9
Contents?: true
Size: 1013 Bytes
Versions: 2
Compression:
Stored size: 1013 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/am_spec_helper') describe "Mailee" do before(:each) do Mailee::Config.site = "http://api.bdb28c0a0a4a3.softa.server:3000" end it "should respond to send_with_mailee" do ActionMailer::Base.should respond_to(:send_with_mailee) end it "should use Mailee::Mailer as the delivery method" do Foo.delivery_method.should be(Mailee::Mailer) end it "should deliver" do result = Foo.bar.deliver result.should_not be(false) result.class.should be(Mail::Message) result.delivery_method.class.should be(Mailee::Mailer) result.mailee_message.class.should be(Mailee::Message) result.mailee_message.id.should_not be(nil) result.mailee_message.status.should_not be(4) result.mailee_message.title.should_not be('Foo') result.mailee_message.subject.should_not be('Foo') result.mailee_message.from_name.should_not be('Maiz') result.mailee_message.from_email.should_not be('maiz@softa.com.br') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mailee-0.4.3 | spec/mailee-api-am.rb |
mailee-0.4.2 | spec/mailee-api-am.rb |