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
interu-backup-3.0.16 spec/configuration/notifier/mail_spec.rb
backup-3.0.16 spec/configuration/notifier/mail_spec.rb
backup-3.0.15 spec/configuration/notifier/mail_spec.rb
backup-3.0.14 spec/configuration/notifier/mail_spec.rb
backup-3.0.13 spec/configuration/notifier/mail_spec.rb
backup-3.0.12 spec/configuration/notifier/mail_spec.rb
backup-3.0.11 spec/configuration/notifier/mail_spec.rb
alg-backup-3.0.10 spec/configuration/notifier/mail_spec.rb
backup-3.0.10 spec/configuration/notifier/mail_spec.rb
backup-3.0.9 spec/configuration/notifier/mail_spec.rb
backup-3.0.8 spec/configuration/notifier/mail_spec.rb
backup-3.0.7 spec/configuration/notifier/mail_spec.rb
backup-3.0.6 spec/configuration/notifier/mail_spec.rb
backup-3.0.5 spec/configuration/notifier/mail_spec.rb
backup-3.0.4 spec/configuration/notifier/mail_spec.rb
backup-3.0.3 spec/configuration/notifier/mail_spec.rb
backup-3.0.2.build.0 spec/configuration/notifier/mail_spec.rb
backup-3.0.2 spec/configuration/notifier/mail_spec.rb
backup-3.0.1.build.0 spec/configuration/notifier/mail_spec.rb
backup-3.0.1 spec/configuration/notifier/mail_spec.rb