Sha256: b7010b1ea0a8439a6d07e107be40119905bfc80e8884d59ec0d9268480b0ff1f
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
# encoding: utf-8 require File.dirname(__FILE__) + '/../../spec_helper' describe Backup::Configuration::Notifier::Twitter do before do Backup::Configuration::Notifier::Twitter.defaults do |tweet| tweet.consumer_key = 'my_consumer_key' tweet.consumer_secret = 'my_consumer_secret' tweet.oauth_token = 'my_oauth_token' tweet.oauth_token_secret = 'my_oauth_token_secret' end end it 'should set the default tweet configuration' do tweet = Backup::Configuration::Notifier::Twitter tweet.consumer_key.should == 'my_consumer_key' tweet.consumer_secret.should == 'my_consumer_secret' tweet.oauth_token.should == 'my_oauth_token' tweet.oauth_token_secret.should == 'my_oauth_token_secret' end describe '#clear_defaults!' do it 'should clear all the defaults, resetting them to nil' do Backup::Configuration::Notifier::Twitter.clear_defaults! tweet = Backup::Configuration::Notifier::Twitter tweet.consumer_key.should == nil tweet.consumer_secret.should == nil tweet.oauth_token.should == nil tweet.oauth_token_secret.should == nil end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
backup-3.0.19 | spec/configuration/notifier/twitter_spec.rb |
backup-3.0.18 | spec/configuration/notifier/twitter_spec.rb |