Sha256: 86a0ba56e380df614bc4d2998d6936d4537526d6cc4ea3e856fae95ff378443b

Contents?: true

Size: 884 Bytes

Versions: 4

Compression:

Stored size: 884 Bytes

Contents

# encoding: utf-8

require File.expand_path('../../../spec_helper.rb', __FILE__)

describe Backup::Configuration::Notifier::Prowl do
  before do
    Backup::Configuration::Notifier::Prowl.defaults do |prowl|
      prowl.application = 'my_application'
      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
    prowl.application.should == 'my_application'
    prowl.api_key.should     == 'my_api_key'
  end

  describe '#clear_defaults!' do
    it 'should clear all the defaults, resetting them to nil' do
      Backup::Configuration::Notifier::Prowl.clear_defaults!

      prowl = Backup::Configuration::Notifier::Prowl
      prowl.application.should == nil
      prowl.api_key.should     == nil
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
backup_checksum-3.0.23 spec/configuration/notifier/prowl_spec.rb
backup-3.0.23 spec/configuration/notifier/prowl_spec.rb
backup-3.0.22 spec/configuration/notifier/prowl_spec.rb
backup-3.0.21 spec/configuration/notifier/prowl_spec.rb