Created
January 9, 2009 21:18
-
-
Save xwmx/45285 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def log_test | |
if Rails::logger | |
# When I run tests in rake or autotest I see the same log message multiple times per test for some reason. | |
# This guard prevents that. | |
unless @already_logged_this_test | |
Rails::logger.info "\n\nStarting #{@method_name}\n#{'-' * (9 + @method_name.length)}\n" | |
end | |
@already_logged_this_test = true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment