Sha256: a2fad61fb41dae2d997702db0846e5d8b3ca485eca1d276c7a529bcff38e2461
Contents?: true
Size: 808 Bytes
Versions: 4
Compression:
Stored size: 808 Bytes
Contents
# encoding: utf-8 require File.expand_path('../../../spec_helper.rb', __FILE__) describe Backup::Configuration::Storage::Local do before do Backup::Configuration::Storage::Local.defaults do |local| local.path = 'my_backups' local.keep = 20 end end after { Backup::Configuration::Storage::Local.clear_defaults! } 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
4 entries across 4 versions & 2 rubygems