Sha256: edac2c82e16c7aa5efa3df27c380ee3360d19194be89fe823676d339aa844a82
Contents?: true
Size: 486 Bytes
Versions: 1
Compression:
Stored size: 486 Bytes
Contents
require 'spec_helper' describe Slackistrano do before(:each) do Rake::Task['load:defaults'].execute end %w[updating reverting updated reverted failed].each do |stage| it "does not post to slack on slack:deploy:#{stage}" do set "slack_run_#{stage}".to_sym, ->{ true } expect(Capistrano::Configuration).to receive(:dry_run?).and_return(true) expect(Slackistrano).not_to receive(:post) Rake::Task["slack:deploy:#{stage}"].execute end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slackistrano-3.0.0 | spec/dry_run_spec.rb |