Skip to content

Instantly share code, notes, and snippets.

@patmaddox
Created March 13, 2009 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patmaddox/78518 to your computer and use it in GitHub Desktop.
Save patmaddox/78518 to your computer and use it in GitHub Desktop.
befores = {}
Before do
if block = befores[current_scenario.name]
block.call
end
end
# Maybe get this behavior for free and provide
# clean registration...
Before("My funky scenario") do
# some code that executes only for this scenario
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment