Sha256: dcecbf4d33e3ad71c598e777b6db6c48d290eaaf3b76721e44972113872659f0
Contents?: true
Size: 491 Bytes
Versions: 2
Compression:
Stored size: 491 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cucumber-rails-0.1.1.rc4 | generators/feature/templates/steps.erb |
cucumber-rails-0.1.1.rc3 | generators/feature/templates/steps.erb |