Skip to content

Commit

Permalink
clear defaults after configuration tests (fix travis-ci build)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian D. Burns committed Jan 12, 2012
1 parent d813160 commit cea326a
Show file tree
Hide file tree
Showing 31 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/configuration/compressor/bzip2_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
compressor.fast = true
end
end
after { Backup::Configuration::Compressor::Bzip2.clear_defaults! }

it 'should set the default compressor configuration' do
compressor = Backup::Configuration::Compressor::Bzip2
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/compressor/gzip_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
compressor.fast = true
end
end
after { Backup::Configuration::Compressor::Gzip.clear_defaults! }

it 'should set the default compressor configuration' do
compressor = Backup::Configuration::Compressor::Gzip
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/compressor/lzma_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
compressor.fast = true
end
end
after { Backup::Configuration::Compressor::Lzma.clear_defaults! }

it 'should set the default compressor configuration' do
compressor = Backup::Configuration::Compressor::Lzma
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/compressor/pbzip2_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
compressor.processors = 2
end
end
after { Backup::Configuration::Compressor::Pbzip2.clear_defaults! }

it 'should set the default compressor configuration' do
compressor = Backup::Configuration::Compressor::Pbzip2
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/database/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
db.utility_path = '/usr/bin/my_util' # deprecated
end
end
after { Backup::Configuration::Database::Base.clear_defaults! }

it 'should set the default Base configuration' do
db = Backup::Configuration::Database::Base
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/database/mongodb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
db.lock = true
end
end
after { Backup::Configuration::Database::MongoDB.clear_defaults! }

it 'should set the default MongoDB configuration' do
db = Backup::Configuration::Database::MongoDB
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/database/mysql_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
db.mysqldump_utility = '/path/to/mysqldump'
end
end
after { Backup::Configuration::Database::MySQL.clear_defaults! }

it 'should set the default MySQL configuration' do
db = Backup::Configuration::Database::MySQL
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/database/postgresql_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
db.pg_dump_utility = '/path/to/pg_dump'
end
end
after { Backup::Configuration::Database::PostgreSQL.clear_defaults! }

it 'should set the default PostgreSQL configuration' do
db = Backup::Configuration::Database::PostgreSQL
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/database/redis_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
db.redis_cli_utility = '/path/to/redis-cli'
end
end
after { Backup::Configuration::Database::Redis.clear_defaults! }

it 'should set the default Redis configuration' do
db = Backup::Configuration::Database::Redis
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/database/riak_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
db.riak_admin_utility = '/path/to/riak-admin'
end
end
after { Backup::Configuration::Database::Riak.clear_defaults! }

it 'should set the default Riak configuration' do
db = Backup::Configuration::Database::Riak
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/encryptor/gpg_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
encryptor.key = 'my_key'
end
end
after { Backup::Configuration::Encryptor::GPG.clear_defaults! }

it 'should set the default encryptor configuration' do
encryptor = Backup::Configuration::Encryptor::GPG
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/encryptor/open_ssl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
encryptor.salt = true
end
end
after { Backup::Configuration::Encryptor::OpenSSL.clear_defaults! }

it 'should set the default encryptor configuration' do
encryptor = Backup::Configuration::Encryptor::OpenSSL
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/notifier/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
base.on_failure = 'on_failure'
end
end
after { Backup::Configuration::Notifier::Base.clear_defaults! }

it 'should set the default campfire configuration' do
base = Backup::Configuration::Notifier::Base
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/notifier/campfire_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
campfire.room_id = 'my_room_id'
end
end
after { Backup::Configuration::Notifier::Campfire.clear_defaults! }

it 'should set the default campfire configuration' do
campfire = Backup::Configuration::Notifier::Campfire
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/notifier/hipchat_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
hipchat.notify_users = true
end
end
after { Backup::Configuration::Notifier::Hipchat.clear_defaults! }

it 'should set the default tweet configuration' do
hipchat = Backup::Configuration::Notifier::Hipchat
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/notifier/mail_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
mail.mail_folder = '/path/to/backup/mails'
end
end
after { Backup::Configuration::Notifier::Mail.clear_defaults! }

it 'should set the default Mail configuration' do
mail = Backup::Configuration::Notifier::Mail
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/notifier/presently_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
presently.group_id = 'my_group_id'
end
end
after { Backup::Configuration::Notifier::Presently.clear_defaults! }

it 'should set the default tweet configuration' do
presently = Backup::Configuration::Notifier::Presently
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/notifier/prowl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
prowl.api_key = 'my_api_key'
end
end
after { Backup::Configuration::Notifier::Prowl.clear_defaults! }

it 'should set the default tweet configuration' do
prowl = Backup::Configuration::Notifier::Prowl
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/notifier/twitter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
tweet.oauth_token_secret = 'my_oauth_token_secret'
end
end
after { Backup::Configuration::Notifier::Twitter.clear_defaults! }

it 'should set the default tweet configuration' do
tweet = Backup::Configuration::Notifier::Twitter
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/storage/cloudfiles_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
cf.servicenet = true
end
end
after { Backup::Configuration::Storage::CloudFiles.clear_defaults! }

it 'should set the default Cloud Files configuration' do
cf = Backup::Configuration::Storage::CloudFiles
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/storage/dropbox_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
db.keep = 20
end
end
after { Backup::Configuration::Storage::Dropbox.clear_defaults! }

it 'should set the default Dropbox configuration' do
db = Backup::Configuration::Storage::Dropbox
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/storage/ftp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
ftp.passive_mode = false
end
end
after { Backup::Configuration::Storage::FTP.clear_defaults! }

it 'should set the default ftp configuration' do
ftp = Backup::Configuration::Storage::FTP
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/storage/local_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
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
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/storage/ninefold_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
nf.path = 'my_backups'
end
end
after { Backup::Configuration::Storage::Ninefold.clear_defaults! }

it 'should set the default Ninefold configuration' do
ninefold = Backup::Configuration::Storage::Ninefold
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/storage/rsync_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
rsync.local = true
end
end
after { Backup::Configuration::Storage::RSync.clear_defaults! }

it 'should set the default rsync configuration' do
rsync = Backup::Configuration::Storage::RSync
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/storage/s3_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
s3.path = 'my_backups'
end
end
after { Backup::Configuration::Storage::S3.clear_defaults! }

it 'should set the default S3 configuration' do
s3 = Backup::Configuration::Storage::S3
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/storage/scp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
scp.keep = 20
end
end
after { Backup::Configuration::Storage::SCP.clear_defaults! }

it 'should set the default scp configuration' do
scp = Backup::Configuration::Storage::SCP
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/storage/sftp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
sftp.keep = 20
end
end
after { Backup::Configuration::Storage::SFTP.clear_defaults! }

it 'should set the default sftp configuration' do
sftp = Backup::Configuration::Storage::SFTP
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/syncer/rsync/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
rsync.additional_options = []
end
end
after { Backup::Configuration::Syncer::RSync::Base.clear_defaults! }

it 'should set the default rsync configuration' do
rsync = Backup::Configuration::Syncer::RSync::Base
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/syncer/rsync/push_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
rsync.compress = true
end
end
after { Backup::Configuration::Syncer::RSync::Push.clear_defaults! }

it 'should be a subclass of RSync::Base' do
rsync = Backup::Configuration::Syncer::RSync::Push
Expand Down
1 change: 1 addition & 0 deletions spec/configuration/syncer/s3_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
s3.additional_options = ['--exclude="*.rb"']
end
end
after { Backup::Configuration::Syncer::S3.clear_defaults! }

it 'should set the default s3 configuration' do
s3 = Backup::Configuration::Syncer::S3
Expand Down

0 comments on commit cea326a

Please sign in to comment.