Skip to content

Instantly share code, notes, and snippets.

@diabolo
Created May 6, 2011 12:40
Show Gist options
  • Save diabolo/958885 to your computer and use it in GitHub Desktop.
Save diabolo/958885 to your computer and use it in GitHub Desktop.
Working with multi-step interfaces in Cucumber
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