Skip to content

Instantly share code, notes, and snippets.

@dchelimsky
Created September 18, 2008 03:48
Show Gist options
  • Save dchelimsky/11366 to your computer and use it in GitHub Desktop.
Save dchelimsky/11366 to your computer and use it in GitHub Desktop.
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