Sha256: d250f0cba2e76e0352b6d90ff457a09b6b513419d5d720cf40cb2297002af951
Contents?: true
Size: 572 Bytes
Versions: 28
Compression:
Stored size: 572 Bytes
Contents
Given /^the following logins:$/ do |logins| logins.hashes.each do |user| User.create(:email => user["email"], :password => user["password"]) end end Given /^I check for SSL$/ do ::Devise.ldap_config = "#{Rails.root}/config/ssl_ldap.yml" if ENV["LDAP_SSL"] 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
28 entries across 28 versions & 6 rubygems