-
-
Save patmaddox/78518 to your computer and use it in GitHub Desktop.
This file contains 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
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