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

Version Path
backup-3.0.19 spec/configuration/compressor/gzip_spec.rb
backup-3.0.18 spec/configuration/compressor/gzip_spec.rb
interu-backup-3.0.16 spec/configuration/compressor/gzip_spec.rb
backup-3.0.16 spec/configuration/compressor/gzip_spec.rb
backup-3.0.15 spec/configuration/compressor/gzip_spec.rb
backup-3.0.14 spec/configuration/compressor/gzip_spec.rb
backup-3.0.13 spec/configuration/compressor/gzip_spec.rb
backup-3.0.12 spec/configuration/compressor/gzip_spec.rb
backup-3.0.11 spec/configuration/compressor/gzip_spec.rb
alg-backup-3.0.10 spec/configuration/compressor/gzip_spec.rb
backup-3.0.10 spec/configuration/compressor/gzip_spec.rb
backup-3.0.9 spec/configuration/compressor/gzip_spec.rb
backup-3.0.8 spec/configuration/compressor/gzip_spec.rb
backup-3.0.7 spec/configuration/compressor/gzip_spec.rb
backup-3.0.6 spec/configuration/compressor/gzip_spec.rb
backup-3.0.5 spec/configuration/compressor/gzip_spec.rb
backup-3.0.4 spec/configuration/compressor/gzip_spec.rb
backup-3.0.3 spec/configuration/compressor/gzip_spec.rb
backup-3.0.2.build.0 spec/configuration/compressor/gzip_spec.rb
backup-3.0.2 spec/configuration/compressor/gzip_spec.rb