Sha256: 80431c6c0482813a36658360346d719b6db8e3441cb22279ea9443b95c7d2e36
Contents?: true
Size: 620 Bytes
Versions: 4
Compression:
Stored size: 620 Bytes
Contents
require 'spec_helper' class NilPayloadMessaging < Slackistrano::Messaging::Default def payload_for_updating nil end def channels_for(action) "testing" end end describe Slackistrano do before(:all) do set :slackistrano, { klass: NilPayloadMessaging } end it "does not post on updating" do expect_any_instance_of(Slackistrano::Capistrano).not_to receive(:post) Rake::Task["slack:deploy:updating"].execute end it "posts on updated" do expect_any_instance_of(Slackistrano::Capistrano).to receive(:post).and_return(true) Rake::Task["slack:deploy:updated"].execute end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
slackistrano-4.0.2 | spec/nil_payload_spec.rb |
slackistrano-4.0.1 | spec/nil_payload_spec.rb |
slackistrano-4.0.0 | spec/nil_payload_spec.rb |
slackistrano-3.8.4 | spec/nil_payload_spec.rb |