Sha256: b3a79ef19e7d10de842ddc2b4b43325135ea7a2e74c17fadbf45f27cd3f9fddf
Contents?: true
Size: 1.19 KB
Versions: 10
Compression:
Stored size: 1.19 KB
Contents
# encoding: utf-8 require File.dirname(__FILE__) + '/../../spec_helper' describe Backup::Configuration::Storage::Dropbox do before do Backup::Configuration::Storage::Dropbox.defaults do |db| db.email = 'my@email.com' db.password = 'my_password' db.api_key = 'my_api_key' db.api_secret = 'my_secret' db.path = 'my_backups' db.keep = 20 end end it 'should set the default Dropbox configuration' do db = Backup::Configuration::Storage::Dropbox db.email.should == 'my@email.com' db.password.should == 'my_password' db.api_key.should == 'my_api_key' db.api_secret.should == 'my_secret' db.path.should == 'my_backups' db.keep.should == 20 end describe '#clear_defaults!' do it 'should clear all the defaults, resetting them to nil' do Backup::Configuration::Storage::Dropbox.clear_defaults! db = Backup::Configuration::Storage::Dropbox db.email.should == nil db.password.should == nil db.api_key.should == nil db.api_secret.should == nil db.path.should == nil db.keep.should == nil end end end
Version data entries
10 entries across 10 versions & 1 rubygems