Sha256: 9ad9a32c7fe339b1e0cbafd38a6f8d8ce9dd4b2b99d23c7c583902ac40ed39e3
Contents?: true
Size: 782 Bytes
Versions: 24
Compression:
Stored size: 782 Bytes
Contents
# encoding: utf-8 require File.dirname(__FILE__) + '/../../spec_helper' describe Backup::Configuration::Compressor::Gzip do before do Backup::Configuration::Compressor::Gzip.defaults do |compressor| compressor.best = true compressor.fast = true end end it 'should set the default compressor configuration' do compressor = Backup::Configuration::Compressor::Gzip 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::Gzip.clear_defaults! compressor = Backup::Configuration::Compressor::Gzip compressor.best.should == nil compressor.fast.should == nil end end end
Version data entries
24 entries across 24 versions & 3 rubygems