Sha256: e7a2fdb2c98bf3b7de3cf164ca3726065cfd613b826849498b7422c21f59a87a
Contents?: true
Size: 864 Bytes
Versions: 4
Compression:
Stored size: 864 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 after { Backup::Configuration::Compressor::Bzip2.clear_defaults! } 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
4 entries across 4 versions & 2 rubygems