Sha256: b98e611e36a466e0448f865de3a5df20e1672624e70ab4e0d2ddb271edfc38db

Contents?: true

Size: 372 Bytes

Versions: 7

Compression:

Stored size: 372 Bytes

Contents

Given /^the following users:$/ do |users|
  Users.create!(users.hashes)
end

When /^I delete the (\d+)(?:st|nd|rd|th) users$/ do |pos|
  visit users_path
  within("table tr:nth-child(#{pos.to_i+1})") do
    click_link "Destroy"
  end
end

Then /^I should see the following users:$/ do |expected_users_table|
  expected_users_table.diff!(tableish('table tr', 'td,th'))
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
echo_base-0.1.3 lib/generators/echo_base/templates/features/step_definitions/users_steps.rb
echo_base-0.1.2 lib/generators/echo_base/templates/features/step_definitions/users_steps.rb
echo_base-0.1.1 lib/generators/echo_base/templates/features/step_definitions/users_steps.rb
echo_base-0.1.0 lib/generators/echo_base/templates/features/step_definitions/users_steps.rb
echo_base-0.0.4 lib/generators/echo_base/templates/features/step_definitions/users_steps.rb
echo_base-0.0.3 lib/generators/echo_base/templates/features/step_definitions/users_steps.rb
echo_base-0.0.2 lib/generators/echo_base/templates/features/step_definitions/users_steps.rb