Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@krukow
Created September 17, 2012 19:29
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 krukow/3739269 to your computer and use it in GitHub Desktop.
Save krukow/3739269 to your computer and use it in GitHub Desktop.
table_step_def.rb
Given /the following people exist:/ do |people_table|
people_table.hashes.each do |hash|
# The first time the +hash+ will contain:
# {'name' => 'Aslak', 'email' => 'aslak@email.com', 'phone' => '123'}
# The second time:
# {'name' => 'Joe', 'email' => 'joe@email.com', 'phone' => '234'}
# etc.
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment