Sha256: e30ab50ad5347d174bde0466393e7ae558ba921942756a2ef1bef562049e7524

Contents?: true

Size: 787 Bytes

Versions: 2

Compression:

Stored size: 787 Bytes

Contents

# encoding: utf-8

require File.dirname(__FILE__) + '/../../spec_helper'

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

2 entries across 2 versions & 1 rubygems

Version Path
backup-3.0.19 spec/configuration/compressor/bzip2_spec.rb
backup-3.0.18 spec/configuration/compressor/bzip2_spec.rb