Created
October 31, 2012 18:43
-
-
Save ajwinn/3989011 to your computer and use it in GitHub Desktop.
Does Ruby understand tables?
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
# from the .feature | |
Given the following movies exist: | |
| title | rating | release_date | | |
| Aladdin | G | 25-Nov-1992 | | |
| The Terminator | R | 26-Oct-1984 | | |
# from the _steps.rb | |
Given /the following movies exist/ do |movies_table| | |
movies_table.hashes.each do |movie| | |
Movie.create!(movie) | |
end | |
#assert(Movie.all.length ==) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment