1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00
capistrano/spec
Matt Brictson 5ecd2085bd Fix broken deploy_failure.feature tests
It seems that enhancing a task using an `after` block will not have desired
effect if the new task shares the same name (excluding namespace) as the task
being enhanced. In other words, `after 'deploy:failed', :failed do ...` will
not work (the block will never be executed). This behavior was recently
introduced in 5fcf3da.

To fix the feature test using this code, I renamed the task to be a unique name.
The test now works as intended.

Also, I noticed the task defined in `fail.rake` was sometimes not working as
intended, because the `shared_path` did not exist on the VM's filesystem. This
meant that `touch` was failing. Corrected by issuing `mkdir -p` first.

With these changes, all feature tests now pass.
2015-12-27 17:00:47 -08:00
..
integration Remove bogus local_user spec 2015-10-31 10:44:08 +01:00
lib Deduplicate list of linked directories 2015-11-08 12:01:48 +01:00
support Fix broken deploy_failure.feature tests 2015-12-27 17:00:47 -08:00
integration_spec_helper.rb Add integration tests for deploy task 2013-06-16 13:08:15 +01:00
spec_helper.rb move to rspec 3 2014-08-12 22:52:37 +04:00