Sha256: 53acefb957a84c1790f90733b0b7d524476bb2dcc2267e8e5bf785d353295d7a
Contents?: true
Size: 1.45 KB
Versions: 1
Compression:
Stored size: 1.45 KB
Contents
# encoding: utf-8 require File.expand_path('../../../spec_helper.rb', __FILE__) describe Backup::Configuration::Notifier::Hipchat do before do Backup::Configuration::Notifier::Hipchat.defaults do |hipchat| hipchat.token = 'token' hipchat.from = 'DB Backup' hipchat.rooms_notified = ['activity'] hipchat.success_color = 'green' hipchat.warning_color = 'yellow' hipchat.failure_color = 'red' hipchat.notify_users = true end end it 'should set the default tweet configuration' do hipchat = Backup::Configuration::Notifier::Hipchat hipchat.token.should == 'token' hipchat.from.should == 'DB Backup' hipchat.rooms_notified.should == ['activity'] hipchat.success_color.should == 'green' hipchat.warning_color.should == 'yellow' hipchat.failure_color.should == 'red' hipchat.notify_users.should == true end describe '#clear_defaults!' do it 'should clear all the defaults, resetting them to nil' do Backup::Configuration::Notifier::Hipchat.clear_defaults! hipchat = Backup::Configuration::Notifier::Hipchat hipchat.token.should == nil hipchat.from.should == nil hipchat.rooms_notified.should == nil hipchat.success_color.should == nil hipchat.warning_color.should == nil hipchat.failure_color.should == nil hipchat.notify_users.should == nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
backup-3.0.20 | spec/configuration/notifier/hipchat_spec.rb |