Sha256: 979083f8b344e748b95b39ca10f2665d5700fe2f4a6a2b135e95b9689f16dfcf

Contents?: true

Size: 484 Bytes

Versions: 66

Compression:

Stored size: 484 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!(table_at('table').to_a)
end

Version data entries

66 entries across 66 versions & 10 rubygems

Version Path
rackjour-0.1.8 vendor/gems/gems/cucumber-0.4.4/rails_generators/feature/templates/steps.erb
middleman-0.10.14 vendor/gems/gems/cucumber-0.4.4/rails_generators/feature/templates/steps.erb
cucumber-0.4.4 rails_generators/feature/templates/steps.erb
cucumber-rails-0.1.1.rc2 generators/feature/templates/steps.erb
cucumber-rails-0.1.0 rails_generators/feature/templates/steps.erb
cucumber-rails-0.0.0 rails_generators/feature/templates/steps.erb
cucumber-0.4.3 rails_generators/feature/templates/steps.erb
cucumber-0.4.2 rails_generators/feature/templates/steps.erb
cucumber-0.4.1 rails_generators/feature/templates/steps.erb
cucumber-0.4.0 rails_generators/feature/templates/steps.erb
cucumber-0.4.0.rc1 rails_generators/feature/templates/steps.erb
cucumber-0.3.104 rails_generators/feature/templates/steps.erb
cucumber-0.3.103 rails_generators/feature/templates/steps.erb
cucumber-0.3.102 rails_generators/feature/templates/steps.erb
cucumber-0.3.101 rails_generators/feature/templates/steps.erb
cucumber-0.3.100 rails_generators/feature/templates/steps.erb
cucumber-0.3.98 rails_generators/feature/templates/steps.erb
cucumber-0.3.99 rails_generators/feature/templates/steps.erb
cucumber-0.3.97 rails_generators/feature/templates/steps.erb
cucumber-0.3.96 rails_generators/feature/templates/steps.erb