Sha256: 534306bf5d173ca8df51b87b5e123152514b196a923356f2ac7a842ea2419322
Contents?: true
Size: 1.21 KB
Versions: 22
Compression:
Stored size: 1.21 KB
Contents
# encoding: utf-8 require File.dirname(__FILE__) + '/../../spec_helper' describe Backup::Configuration::Notifier::Mail do before do Backup::Configuration::Notifier::Mail.defaults do |mail| mail.from = 'my.sender.email@gmail.com' mail.to = 'my.receiver.email@gmail.com' mail.address = 'smtp.gmail.com' mail.port = 587 mail.domain = 'your.host.name' mail.user_name = 'user' mail.password = 'secret' mail.authentication = 'plain' mail.enable_starttls_auto = true end end it 'should set the default Mail configuration' do mail = Backup::Configuration::Notifier::Mail mail.from.should == 'my.sender.email@gmail.com' mail.to.should == 'my.receiver.email@gmail.com' mail.address.should == 'smtp.gmail.com' mail.port.should == 587 mail.domain.should == 'your.host.name' mail.user_name.should == 'user' mail.password.should == 'secret' mail.authentication.should == 'plain' mail.enable_starttls_auto.should == true end end
Version data entries
22 entries across 22 versions & 3 rubygems
Version | Path |
---|---|
backup-3.0.0.build.0 | spec/configuration/notifier/mail_spec.rb |
backup-3.0.0 | spec/configuration/notifier/mail_spec.rb |