Sha256: 7d9d52ddf1097aa6e39a95db92cc642ff87c0c09e148fabf96212e5610d4f1c0
Contents?: true
Size: 744 Bytes
Versions: 4
Compression:
Stored size: 744 Bytes
Contents
# encoding: utf-8 require File.expand_path('../../../spec_helper.rb', __FILE__) describe Backup::Configuration::Encryptor::GPG do before do Backup::Configuration::Encryptor::GPG.defaults do |encryptor| encryptor.key = 'my_key' end end after { Backup::Configuration::Encryptor::GPG.clear_defaults! } 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
4 entries across 4 versions & 2 rubygems