volontariat/voluntary_scholarship

View on GitHub
dummy/features/step_definitions/custom_web_steps.rb

Summary

Maintainability
A
0 mins
Test Coverage
Then /^I should see the following table:$/ do |expected_table|
  rows = find('table').all('tr')
  table = rows.map { |r| r.all('th,td').map { |c| c.text.strip } }
  expected_table.diff!(table)
end