Skip to content

Instantly share code, notes, and snippets.

@jferris
Created April 28, 2010 20:55
Show Gist options
  • Select an option

  • Save jferris/382693 to your computer and use it in GitHub Desktop.

Select an option

Save jferris/382693 to your computer and use it in GitHub Desktop.
module Cucumber
module Ast
class StepInvocation
def accept_with_logging(visitor)
if defined?(::Rails)
::Rails.logger.debug "*** Starting Cucumber Step: #{name} ***"
end
accept_without_logging(visitor)
if defined?(::Rails)
::Rails.logger.debug "*** Done With Cucumber Step: #{name} ***"
end
end
alias_method :accept_without_logging, :accept
alias_method :accept, :accept_with_logging
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment