Created
May 6, 2011 12:40
-
-
Save diabolo/958885 to your computer and use it in GitHub Desktop.
Working with multi-step interfaces in Cucumber
This file contains hidden or 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
def foo | |
# do whatever you need to do | |
end | |
def bar | |
# do whatever you need to do | |
end | |
def foobar | |
foo | |
bar | |
end | |
end | |
World(Helper) | |
Given I Foo | |
foo | |
end | |
Given I Bar | |
bar | |
end | |
Now you can right | |
Given I Foobar | |
foo | |
bar | |
end | |
or even | |
Given I Foobar | |
foobar # go back and look at module | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment