Sha256: 8eb40aff04bed76e1ecd8f2f30cf08c44ceb59fb9eb2b4fcc1f38f2b00ab71d6

Contents?: true

Size: 783 Bytes

Versions: 5

Compression:

Stored size: 783 Bytes

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
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
interu-backup-3.0.16 spec/configuration/notifier/twitter_spec.rb
backup-3.0.16 spec/configuration/notifier/twitter_spec.rb
backup-3.0.15 spec/configuration/notifier/twitter_spec.rb
backup-3.0.14 spec/configuration/notifier/twitter_spec.rb
backup-3.0.13 spec/configuration/notifier/twitter_spec.rb