Sha256: ca4f9c48ee4c53451b147c3af2dda17b34d80315811e7ad9defb1525808ac721
Contents?: true
Size: 1.17 KB
Versions: 8
Compression:
Stored size: 1.17 KB
Contents
require 'spec_helper' describe Slackistrano do describe "before/after hooks" do it "invokes slack:deploy:updating before deploy:updating" do expect(Rake::Task['deploy:updating'].prerequisites).to include 'slack:deploy:updating' end it "invokes slack:deploy:reverting before deploy:reverting" do expect(Rake::Task['deploy:reverting'].prerequisites).to include 'slack:deploy:reverting' end it "invokes slack:deploy:updated after deploy:finishing" do expect(Rake::Task['slack:deploy:updated']).to receive(:invoke) Rake::Task['deploy:finishing'].execute end it "invokes slack:deploy:reverted after deploy:finishing_rollback" do expect(Rake::Task['slack:deploy:reverted']).to receive(:invoke) Rake::Task['deploy:finishing_rollback'].execute end it "invokes slack:deploy:failed after deploy:failed" do expect(Rake::Task['slack:deploy:failed']).to receive(:invoke) Rake::Task['deploy:failed'].execute end it "invokes all slack:deploy tasks before slack:deploy:test" do expect(Rake::Task['slack:deploy:test'].prerequisites).to match %w[updating updated reverting reverted failed] end end end
Version data entries
8 entries across 8 versions & 1 rubygems