fnichol/minitest-capistrano — pull request #4 by mvandenbeuken (2012-07-12 20:30:56+00:00)
Title: Testing callbacks against the Capistrano config's list of callbacks

Hi Fletcher,

I made a change to the test_callback_on() method so that it tests against the list of callbacks in the Capistrano config instead of the relationship between a task and callback.

I found that Capistrano always returned true for Capistrano::TaskCallback.applies_to?(task) if task is nil and that gave me a few false positives on some tests I was writing.