spec/task_hooks_spec.rb in slackistrano-4.0.0 vs spec/task_hooks_spec.rb in slackistrano-4.0.1

- old
+ new

@@ -2,10 +2,14 @@ describe Slackistrano do describe "before/after hooks" do + it "invokes slack:deploy:starting before deploy:starting" do + expect(Rake::Task['deploy:starting'].prerequisites).to include 'slack:deploy:starting' + end + 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 @@ -26,10 +30,10 @@ 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] + expect(Rake::Task['slack:deploy:test'].prerequisites).to match %w[starting updating updated reverting reverted failed] end end end