Sha256: e7c8e115a62a7f1b6456273d09081d9b2cc6bc17ce4653df9ec9afc464aa2358
Contents?: true
Size: 457 Bytes
Versions: 3
Compression:
Stored size: 457 Bytes
Contents
Given /^the following logins:$/ do |logins| logins.hashes.each do |user| User.create(:email => user["email"], :password => user["password"]) end end When /^I delete the (\d+)(?:st|nd|rd|th) login$/ do |pos| visit logins_path within("table tr:nth-child(#{pos.to_i+1})") do click_link "Destroy" end end Then /^I should see the following logins:$/ do |expected_logins_table| expected_logins_table.diff!(tableish('table tr', 'td,th')) end
Version data entries
3 entries across 3 versions & 1 rubygems