Sha256: de676ebd1e12cad3ffbf5182c2912ada126f98f05f68f6ee1ad2698b5f352a2e

Contents?: true

Size: 734 Bytes

Versions: 2

Compression:

Stored size: 734 Bytes

Contents

# encoding: utf-8

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

describe Backup::Configuration::Storage::Local do
  before do
    Backup::Configuration::Storage::Local.defaults do |local|
      local.path = 'my_backups'
      local.keep = 20
    end
  end

  it 'should set the default local configuration' do
    local = Backup::Configuration::Storage::Local
    local.path.should == 'my_backups'
    local.keep.should == 20
  end

  describe '#clear_defaults!' do
    it 'should clear all the defaults, resetting them to nil' do
      Backup::Configuration::Storage::Local.clear_defaults!

      local = Backup::Configuration::Storage::Local
      local.path.should == nil
      local.keep.should == nil
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
backup-3.0.19 spec/configuration/storage/local_spec.rb
backup-3.0.18 spec/configuration/storage/local_spec.rb