forked from backup/backup
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
111 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
notify_by Campfire do |campfire| | ||
campfire.on_success = true | ||
campfire.on_failure = true | ||
|
||
campfire.api_token = 'my_api_authentication_token' | ||
campfire.subdomain = 'my_subdomain' | ||
campfire.room_id = 'my_room_id' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# encoding: utf-8 | ||
|
||
require File.dirname(__FILE__) + '/../../spec_helper' | ||
|
||
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 | ||
|
||
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 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters