Unfortunately, they define this method in the deploy recipe: https://github.com/capistrano/capistrano/blob/master/lib/capistrano/recipes/deploy.rb#L8
which includes a lot of other code that I didn't want to introduce into the spec.