Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing callbacks against the Capistrano config's list of callbacks #4

Merged
merged 1 commit into from
Jul 12, 2012

Conversation

mvandenbeuken
Copy link
Contributor

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.

…. this helps reduce the possibility of false positives on tests in cases where callbacks are being tested on partial capistrano configurations
@fnichol fnichol merged commit 3fba97a into fnichol:master Jul 12, 2012
@fnichol
Copy link
Owner

fnichol commented Jul 12, 2012

Woot, pulled!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants