Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Cucumber の tablish の代わり
# 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 } })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.