Sha256: 736ad8b63c1c4a259594d479f66bf6aea96329d681a2434700755227a1341eb0

Contents?: true

Size: 487 Bytes

Versions: 2

Compression:

Stored size: 487 Bytes

Contents

require 'spec_helper'

describe Slackistrano do
  before(:all) do
    set :slackistrano, {
      channel: %w[one two]
    }
  end

  context "when :slack_channel is an array" do
    %w[starting updating reverting updated reverted failed].each do |stage|
      it "posts to slack on slack:deploy:#{stage} in every channel" do
        expect_any_instance_of(Slackistrano::Capistrano).to receive(:post).twice
        Rake::Task["slack:deploy:#{stage}"].execute
      end
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slackistrano-4.0.2 spec/posting_to_multiple_channels_spec.rb
slackistrano-4.0.1 spec/posting_to_multiple_channels_spec.rb