Sha256: 497a6df663d6c306162f06413bef970cb2160f380cb7817ded59a2ef1e487ce6
Contents?: true
Size: 858 Bytes
Versions: 4
Compression:
Stored size: 858 Bytes
Contents
# encoding: utf-8 require File.expand_path('../../../spec_helper.rb', __FILE__) describe Backup::Configuration::Compressor::Lzma do before do Backup::Configuration::Compressor::Lzma.defaults do |compressor| compressor.best = true compressor.fast = true end end after { Backup::Configuration::Compressor::Lzma.clear_defaults! } it 'should set the default compressor configuration' do compressor = Backup::Configuration::Compressor::Lzma 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::Lzma.clear_defaults! compressor = Backup::Configuration::Compressor::Lzma compressor.best.should == nil compressor.fast.should == nil end end end
Version data entries
4 entries across 4 versions & 2 rubygems