Created
November 1, 2012 03:43
-
-
Save ajwinn/3991547 to your computer and use it in GitHub Desktop.
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
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