Sha256: 4e6df552d09b16a670d4656cad824bf7cbe19351c5ac75dcbbf031667c8bbdac
Contents?: true
Size: 1001 Bytes
Versions: 2
Compression:
Stored size: 1001 Bytes
Contents
# encoding: utf-8 require File.dirname(__FILE__) + '/../../spec_helper' describe Backup::Configuration::Storage::Ninefold do before do Backup::Configuration::Storage::Ninefold.defaults do |nf| nf.storage_token = 'my_storage_token' nf.storage_secret = 'my_storage_secret' nf.path = 'my_backups' end end it 'should set the default Ninefold configuration' do ninefold = Backup::Configuration::Storage::Ninefold ninefold.storage_token.should == 'my_storage_token' ninefold.storage_secret.should == 'my_storage_secret' ninefold.path.should == 'my_backups' end describe '#clear_defaults!' do it 'should clear all the defaults, resetting them to nil' do Backup::Configuration::Storage::Ninefold.clear_defaults! ninefold = Backup::Configuration::Storage::Ninefold ninefold.storage_token.should == nil ninefold.storage_secret.should == nil ninefold.path.should == nil end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
backup-3.0.19 | spec/configuration/storage/ninefold_spec.rb |
backup-3.0.18 | spec/configuration/storage/ninefold_spec.rb |