Sha256: 7332f33df62dbeebc6cffc28743c0a735138d18cb9a905c8c1dd40a218771159
Contents?: true
Size: 509 Bytes
Versions: 1
Compression:
Stored size: 509 Bytes
Contents
require 'spec_helper' describe SimpleDeploy::Notifier::Slack do include_context 'stubbed config' include_context 'double stubbed logger' before do @notifier = double('slack notifier') ::Slack::Notifier.stub(:new => @notifier) @config_mock.stub(:notifications => { 'slack' => { 'webhook_url' => 'url' } }) @slack = SimpleDeploy::Notifier::Slack.new end it 'should send a message to slack' do @notifier.should_receive(:ping).with('message') @slack.send('message') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_deploy-0.10.2 | spec/notifier/slack_spec.rb |