Sha256: 1b02489c976972761a319d8651a7affe21fa5b2ae927b8e9f268d04cf8ddd284

Contents?: true

Size: 478 Bytes

Versions: 8

Compression:

Stored size: 478 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[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

8 entries across 8 versions & 1 rubygems

Version Path
slackistrano-4.0.0 spec/posting_to_multiple_channels_spec.rb
slackistrano-3.8.4 spec/posting_to_multiple_channels_spec.rb
slackistrano-3.8.3 spec/posting_to_multiple_channels_spec.rb
slackistrano-3.8.2 spec/posting_to_multiple_channels_spec.rb
slackistrano-3.8.1 spec/posting_to_multiple_channels_spec.rb
slackistrano-3.1.1 spec/posting_to_multiple_channels_spec.rb
slackistrano-3.1.0 spec/posting_to_multiple_channels_spec.rb
slackistrano-3.1.0.beta spec/posting_to_multiple_channels_spec.rb