Sha256: 4204e26bc16ecf5ef6f6a00a5a3b2309d3418b61729ba7468cbedeccc04ff41f
Contents?: true
Size: 670 Bytes
Versions: 24
Compression:
Stored size: 670 Bytes
Contents
# encoding: utf-8 require File.dirname(__FILE__) + '/../../spec_helper' describe Backup::Configuration::Encryptor::GPG do before do Backup::Configuration::Encryptor::GPG.defaults do |encryptor| encryptor.key = 'my_key' end end it 'should set the default encryptor configuration' do encryptor = Backup::Configuration::Encryptor::GPG encryptor.key.should == 'my_key' end describe '#clear_defaults!' do it 'should clear all the defaults, resetting them to nil' do Backup::Configuration::Encryptor::GPG.clear_defaults! encryptor = Backup::Configuration::Encryptor::GPG encryptor.key.should == nil end end end
Version data entries
24 entries across 24 versions & 3 rubygems