Sha256: db7fd80afe911d0264308f65b52d3ac41a780acc9ad062fa81d328cd14431e5a
Contents?: true
Size: 855 Bytes
Versions: 2
Compression:
Stored size: 855 Bytes
Contents
require 'spec_helper' describe Concerns::ConfigurableMailer do #describe "Notification instance#get_mailer" do # before { @obj = Notification.new } # it "returns default_mailer" do # @obj.get_mailer.should eq NotificationMailer # end # it "returns 'foo' from Mailerbox.notification_mailer" do # Mailboxer.notification_mailer = 'foo' # @obj.get_mailer.should eq 'foo' # end # after { Mailboxer.notification_mailer = nil } #end describe "Message instance#get_mailer" do before { @obj = Message.new } it "returns default_mailer" do @obj.get_mailer.should eq MessageMailer end it "returns 'foo' from Mailerbox.message_mailer" do Mailboxer.message_mailer = 'foo' @obj.get_mailer.should eq 'foo' end after { Mailboxer.message_mailer = nil } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mailboxer-without-notification-0.11.2 | spec/mailboxer/concerns/configurable_mailer_spec.rb |
mailboxer-without-notification-0.11.1 | spec/mailboxer/concerns/configurable_mailer_spec.rb |