Sha256: c4b7c6d5c7b1a635d98b4ab047b8220aaaef5905fa9fd8f99f3c5daee417a025

Contents?: true

Size: 933 Bytes

Versions: 24

Compression:

Stored size: 933 Bytes

Contents

# encoding: utf-8

require File.dirname(__FILE__) + '/../../spec_helper'

describe Backup::Configuration::Encryptor::OpenSSL do
  before do
    Backup::Configuration::Encryptor::OpenSSL.defaults do |encryptor|
      encryptor.password = 'my_password'
      encryptor.base64   = true
      encryptor.salt     = true
    end
  end

  it 'should set the default encryptor configuration' do
    encryptor = Backup::Configuration::Encryptor::OpenSSL
    encryptor.password.should == 'my_password'
    encryptor.base64.should   == true
    encryptor.salt.should     == true
  end

  describe '#clear_defaults!' do
    it 'should clear all the defaults, resetting them to nil' do
      Backup::Configuration::Encryptor::OpenSSL.clear_defaults!

      encryptor = Backup::Configuration::Encryptor::OpenSSL
      encryptor.password.should == nil
      encryptor.base64.should   == nil
      encryptor.salt.should     == nil
    end
  end
end

Version data entries

24 entries across 24 versions & 3 rubygems

Version Path
backup-3.0.19 spec/configuration/encryptor/open_ssl_spec.rb
backup-3.0.18 spec/configuration/encryptor/open_ssl_spec.rb
interu-backup-3.0.16 spec/configuration/encryptor/open_ssl_spec.rb
backup-3.0.16 spec/configuration/encryptor/open_ssl_spec.rb
backup-3.0.15 spec/configuration/encryptor/open_ssl_spec.rb
backup-3.0.14 spec/configuration/encryptor/open_ssl_spec.rb
backup-3.0.13 spec/configuration/encryptor/open_ssl_spec.rb
backup-3.0.12 spec/configuration/encryptor/open_ssl_spec.rb
backup-3.0.11 spec/configuration/encryptor/open_ssl_spec.rb
alg-backup-3.0.10 spec/configuration/encryptor/open_ssl_spec.rb
backup-3.0.10 spec/configuration/encryptor/open_ssl_spec.rb
backup-3.0.9 spec/configuration/encryptor/open_ssl_spec.rb
backup-3.0.8 spec/configuration/encryptor/open_ssl_spec.rb
backup-3.0.7 spec/configuration/encryptor/open_ssl_spec.rb
backup-3.0.6 spec/configuration/encryptor/open_ssl_spec.rb
backup-3.0.5 spec/configuration/encryptor/open_ssl_spec.rb
backup-3.0.4 spec/configuration/encryptor/open_ssl_spec.rb
backup-3.0.3 spec/configuration/encryptor/open_ssl_spec.rb
backup-3.0.2.build.0 spec/configuration/encryptor/open_ssl_spec.rb
backup-3.0.2 spec/configuration/encryptor/open_ssl_spec.rb