Sha256: 2935d0fc9af68986f12a8508e0d4451c0b9325ee36739a4979916df6d2406c15
Contents?: true
Size: 1.05 KB
Versions: 4
Compression:
Stored size: 1.05 KB
Contents
# encoding: utf-8 require File.expand_path('../../../spec_helper.rb', __FILE__) describe Backup::Configuration::Notifier::Campfire do before do Backup::Configuration::Notifier::Campfire.defaults do |campfire| campfire.api_token = 'my_api_authentication_token' campfire.subdomain = 'my_subdomain' 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 campfire.api_token.should == 'my_api_authentication_token' campfire.subdomain.should == 'my_subdomain' campfire.room_id.should == 'my_room_id' end describe '#clear_defaults!' do it 'should clear all the defaults, resetting them to nil' do Backup::Configuration::Notifier::Campfire.clear_defaults! campfire = Backup::Configuration::Notifier::Campfire campfire.api_token.should == nil campfire.subdomain.should == nil campfire.room_id.should == nil end end end
Version data entries
4 entries across 4 versions & 2 rubygems