Created
November 20, 2009 18:27
-
-
Save nruth/239673 to your computer and use it in GitHub Desktop.
Cucumber Step general alias for Then/When/Given
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
#defines Step, which is the generic When/Then/Given, since they actually have no meaning to cucumber, they're just fluff for human eyes | |
#written by Ian White, observed by yours truly | |
module AliasStep | |
def Step(arg) | |
When arg | |
end | |
end | |
World(AliasStep) | |
class << self | |
alias Step When | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment