Sha256: 8d7735a8f2911cc3994af77fff83dcb13a188a50cecd7e8fc2b2f8950915583a
Contents?: true
Size: 490 Bytes
Versions: 23
Compression:
Stored size: 490 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 %>_path 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
23 entries across 23 versions & 5 rubygems