Last active
December 11, 2015 06:58
-
-
Save springaki/4563036 to your computer and use it in GitHub Desktop.
Cucumber の tablish の代わり
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
# tablish | |
# tableish('table tr', 'th,td') | |
find('table').all('tr').map { |row| row.all('th, td').map { |cell| cell.text.strip } } | |
# ex. | |
Then /^the table should be:$/ do |table| | |
table.diff!(find("table").all('tr').map { |row| row.all('th, td').map { |cell| cell.text.strip } }) | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment