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

Version Path
casecumber-rails-1.0.2.1 lib/generators/cucumber/feature/templates/steps.erb
cucumber-rails2-0.3.5 templates/feature/steps.erb
cucumber-rails2-0.3.4 templates/feature/steps.erb
cucumber-rails2-0.3.3 templates/feature/steps.erb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/cucumber-rails-0.3.2/templates/feature/steps.erb
cucumber-rails-training-wheels-1.0.0 lib/generators/cucumber_rails_training_wheels/feature/templates/steps.erb
cucumber-rails-1.1.0 lib/generators/cucumber/feature/templates/steps.erb
cucumber-rails-1.0.6 lib/generators/cucumber/feature/templates/steps.erb
cucumber-rails-1.0.5 lib/generators/cucumber/feature/templates/steps.erb
cucumber-rails-1.0.4 lib/generators/cucumber/feature/templates/steps.erb
cucumber-rails-1.0.3 lib/generators/cucumber/feature/templates/steps.erb
cucumber-rails-1.0.2 lib/generators/cucumber/feature/templates/steps.erb
cucumber-rails-1.0.1 lib/generators/cucumber/feature/templates/steps.erb
cucumber-rails-1.0.0 lib/generators/cucumber/feature/templates/steps.erb
cucumber-rails-0.5.2 lib/generators/cucumber/feature/templates/steps.erb
cucumber-rails-0.5.1 lib/generators/cucumber/feature/templates/steps.erb
cucumber-rails-0.5.0 lib/generators/cucumber/feature/templates/steps.erb
cucumber-rails-0.5.0.beta1 lib/generators/cucumber/feature/templates/steps.erb
cucumber-rails-0.4.1 templates/feature/steps.erb
cucumber-rails-0.4.0 templates/feature/steps.erb