Sha256: cefcb5805b6084a8ff94ebf61f7d9e8ce33424070b0268719d331bc832039adb

Contents?: true

Size: 460 Bytes

Versions: 7

Compression:

Stored size: 460 Bytes

Contents

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

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

Then /^I should see the following authentications:$/ do |expected_authentications_table|
  expected_authentications_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/authentication_steps.rb
echo_base-0.1.2 lib/generators/echo_base/templates/features/step_definitions/authentication_steps.rb
echo_base-0.1.1 lib/generators/echo_base/templates/features/step_definitions/authentication_steps.rb
echo_base-0.1.0 lib/generators/echo_base/templates/features/step_definitions/authentication_steps.rb
echo_base-0.0.4 lib/generators/echo_base/templates/features/step_definitions/authentication_steps.rb
echo_base-0.0.3 lib/generators/echo_base/templates/features/step_definitions/authentication_steps.rb
echo_base-0.0.2 lib/generators/echo_base/templates/features/step_definitions/authentication_steps.rb