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

Version Path
devise_ldap_authenticatable-0.4.10 test/rails_app/features/step_definitions/login_steps.rb
devise_ldap_authenticatable-0.4.9 test/rails_app/features/step_definitions/login_steps.rb
devise_ldap_authenticatable-0.4.7 test/rails_app/features/step_definitions/login_steps.rb
charanya-devise_ldap_authenticatable-0.4.6 test/rails_app/features/step_definitions/login_steps.rb
devise_ldap_authenticatable-0.4.6 test/rails_app/features/step_definitions/login_steps.rb
devise_ldap_authenticatable-0.4.5 test/rails_app/features/step_definitions/login_steps.rb
devise_ldap_authenticatable-0.4.4 test/rails_app/features/step_definitions/login_steps.rb
devise_ldap_authenticatable-0.4.3 test/rails_app/features/step_definitions/login_steps.rb