Sha256: 5bd6c79ad7991300794a06ac6b901e8688682babc0355e050d96d64545d9096f
Contents?: true
Size: 608 Bytes
Versions: 3
Compression:
Stored size: 608 Bytes
Contents
require 'spec_helper' describe Slackistrano do before(:each) do Rake::Task['load:defaults'].execute end context "when :slack_channel is an array" do %w[updating reverting updated reverted failed].each do |stage| it "posts to slack on slack:deploy:#{stage} in every channel" do set "slack_channel".to_sym, ->{ %w[one two] } set "slack_run_#{stage}".to_sym, ->{ true } expect_any_instance_of(Slackistrano::Capistrano).to receive(:post_to_slack).twice.and_return(double(code: '200')) Rake::Task["slack:deploy:#{stage}"].execute end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
slackistrano-3.0.1 | spec/posting_to_multiple_channels_spec.rb |
slackistrano-3.0.0 | spec/posting_to_multiple_channels_spec.rb |
slackistrano-2.0.1 | spec/posting_to_multiple_channels_spec.rb |