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

Version Path
cucumber-rails-0.3.0 templates/feature/steps.erb
mattscilipoti-cucumber-rails-0.2.4.2 generators/feature/templates/steps.erb
mattscilipoti-cucumber-rails-0.2.4.1 generators/feature/templates/steps.erb
mattscilipoti-cucumber-rails-0.2.4 generators/feature/templates/steps.erb
cucumber-rails-0.2.4 generators/feature/templates/steps.erb
mattscilipoti_cucumber-rails-0.2.4 generators/feature/templates/steps.erb
cucumber-rails-0.2.3 generators/feature/templates/steps.erb
cucumber-rails-0.2.2 generators/feature/templates/steps.erb
cucumber-rails-0.2.1 generators/feature/templates/steps.erb
cucumber-rails-0.2.0 generators/feature/templates/steps.erb
cucumber-rails-0.1.1.rc6 generators/feature/templates/steps.erb
cucumber-rails-0.1.1.rc5 generators/feature/templates/steps.erb