Sha256: 405244ba29db97e9d71318bb06047c9743c7d5d28095077c77a1ec3e19197c3b
Contents?: true
Size: 489 Bytes
Versions: 12
Compression:
Stored size: 489 Bytes
Contents
Given /^the following <%= plural_name %>:$/ do |<%= plural_name %>| <%= class_name %>.create!(<%= plural_name %>.hashes) end When /^I delete the (\d+)(?:st|nd|rd|th) <%= singular_name %>$/ do |pos| visit <%= plural_name %>_url within("table tr:nth-child(#{pos.to_i+1})") do click_link "Destroy" end end Then /^I should see the following <%= plural_name %>:$/ do |expected_<%= plural_name %>_table| expected_<%= plural_name %>_table.diff!(tableish('table tr', 'td,th')) end
Version data entries
12 entries across 12 versions & 3 rubygems