Skip to content

Instantly share code, notes, and snippets.

@ajwinn
Created November 1, 2012 03:43
Show Gist options
  • Save ajwinn/3991547 to your computer and use it in GitHub Desktop.
Save ajwinn/3991547 to your computer and use it in GitHub Desktop.
Given /the following movies exist/ do |movies_table|
movies_table.hashes.each do |movie|
Movie.create!(movie)
# each returned element will be a hash whose key is the table header.
# you should arrange to add that movie to the database here.
end
# flunk "Unimplemented"
assert(Movie.all.length == movies_table.hashes.length)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment