1 Given /^the following roles:$/ do |roles|
2 Role.create!(roles.hashes)
5 When /^I delete the (\d+)(?:st|nd|rd|th) role$/ do |pos|
7 within("table tr:nth-child(#{pos.to_i+1})") do
12 Then /^I should see the following roles:$/ do |expected_roles_table|
13 expected_roles_table.diff!(tableish('table tr', 'td,th'))