Created
September 18, 2008 03:48
-
-
Save dchelimsky/11366 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
TODOS = [] | |
def todo(message) | |
TODOS << "TODO: #{message}\n#{caller(0)[1]}" | |
end | |
module Cucumber | |
module Formatters | |
class PrettyFormatter | |
alias_method :orig_dump, :dump | |
def dump | |
orig_dump | |
unless TODOS.empty? | |
puts TODOS.join("\n") | |
puts | |
end | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment