Sha256: e3079b195e21598a7755d2383471defad80fa202125c263e80c928ebea9a3985
Contents?: true
Size: 795 Bytes
Versions: 1
Compression:
Stored size: 795 Bytes
Contents
# encoding: utf-8 require File.expand_path('../../../spec_helper.rb', __FILE__) describe Backup::Configuration::Compressor::Bzip2 do before do Backup::Configuration::Compressor::Bzip2.defaults do |compressor| compressor.best = true compressor.fast = true end end it 'should set the default compressor configuration' do compressor = Backup::Configuration::Compressor::Bzip2 compressor.best.should == true compressor.fast.should == true end describe '#clear_defaults!' do it 'should clear all the defaults, resetting them to nil' do Backup::Configuration::Compressor::Bzip2.clear_defaults! compressor = Backup::Configuration::Compressor::Bzip2 compressor.best.should == nil compressor.fast.should == nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
backup-3.0.20 | spec/configuration/compressor/bzip2_spec.rb |