Sha256: 1b29b9bd73fa9a14fad09cf8eb797c05fa8f03ba5efabb66c440080e7f8b2d9b

Contents?: true

Size: 437 Bytes

Versions: 6

Compression:

Stored size: 437 Bytes

Contents

require 'spec_helper'

describe Slackistrano do
  context "when :slackistrano is :disabled" do
    before(:all) do
      set :slackistrano, false
    end
    
    %w[updating reverting updated reverted failed].each do |stage|
      it "doesn't post on slack:deploy:#{stage}" do
        expect_any_instance_of(Slackistrano::Capistrano).not_to receive(:post)
        Rake::Task["slack:deploy:#{stage}"].execute
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
slackistrano-4.0.0 spec/disabling_posting_to_slack_spec.rb
slackistrano-3.8.4 spec/disabling_posting_to_slack_spec.rb
slackistrano-3.8.3 spec/disabling_posting_to_slack_spec.rb
slackistrano-3.8.2 spec/disabling_posting_to_slack_spec.rb
slackistrano-3.8.1 spec/disabling_posting_to_slack_spec.rb
slackistrano-3.1.1 spec/disabling_posting_to_slack_spec.rb