Skip to content

Commit

Permalink
Added specs for deploy:migrations callback
Browse files Browse the repository at this point in the history
  • Loading branch information
kirs committed Oct 22, 2012
1 parent f97222d commit 1f9b26f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spec/capistrano-mountaintop_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
@configuration.should callback('mountaintop:campfire:starting').before('deploy')
end

it "performs mountain:campfire:starting before deploy:migrations" do
@configuration.should callback('mountaintop:campfire:starting').before('deploy:migrations')
end

it "performs mountain:announce:finished after deploy" do
@configuration.should callback('mountaintop:campfire:finished').after('deploy')
end
Expand All @@ -34,7 +38,7 @@
@configuration.set(:branch, "master")
@configuration.set(:stage, "staging")
@campfire_room.should_receive(:speak).with("Zim is deploying worlddomination's master to staging")

@configuration.find_and_execute_task('mountaintop:campfire:starting')
end

Expand All @@ -55,7 +59,7 @@

@configuration.find_and_execute_task('mountaintop:campfire:starting')
end


specify "mountaintop:announce:finish pastes the full log" do
@configuration.set(:full_log, "I AM A LOG")
Expand Down

0 comments on commit 1f9b26f

Please sign in to comment.