Sha256: 35edadd7e4c91e842f36ffdd99fe7edb26793bb4812851bab79587f1866720e2
Contents?: true
Size: 594 Bytes
Versions: 6
Compression:
Stored size: 594 Bytes
Contents
require 'spec_helper' describe Slackistrano do before(:all) do set :slackistrano, { klass: Slackistrano::Messaging::Default } end %w[updating reverting updated reverted failed].each do |stage| it "does not post to slack on slack:deploy:#{stage}" do allow_any_instance_of(Slackistrano::Capistrano).to receive(:dry_run?).and_return(true) expect_any_instance_of(Slackistrano::Capistrano).to receive(:post_dry_run) expect_any_instance_of(Slackistrano::Capistrano).not_to receive(:post_to_slack) Rake::Task["slack:deploy:#{stage}"].execute end end end
Version data entries
6 entries across 6 versions & 1 rubygems