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.8.7 spec/rails_app/features/step_definitions/login_steps.rb
devise_ldap_authenticatable-0.8.6 spec/rails_app/features/step_definitions/login_steps.rb
houston-devise_ldap_authenticatable-0.7.1 spec/rails_app/features/step_definitions/login_steps.rb
houston-devise_ldap_authenticatable-0.7.0 spec/rails_app/features/step_definitions/login_steps.rb
xn_devise_ldap_authenticatable-0.8.5 spec/rails_app/features/step_definitions/login_steps.rb
devise_ldap_authenticatable-0.8.5 spec/rails_app/features/step_definitions/login_steps.rb
devise_ldap_authenticatable-0.8.4 spec/rails_app/features/step_definitions/login_steps.rb
devise_ldap_authenticatable-0.8.3 spec/rails_app/features/step_definitions/login_steps.rb
devise_ldap_norm-0.2.0 spec/rails_app/features/step_definitions/login_steps.rb
devise_ldap_authenticatable-0.8.1 spec/rails_app/features/step_definitions/login_steps.rb
devise_ldap_authenticatable-0.8.0 spec/rails_app/features/step_definitions/login_steps.rb
devise_ldap_authenticatable-0.8.0.pre spec/rails_app/features/step_definitions/login_steps.rb
devise_ldap_authenticatable-0.7.0 spec/rails_app/features/step_definitions/login_steps.rb
devise_ldap_authenticatable-0.6.1 test/rails_app/features/step_definitions/login_steps.rb
prathe_devise_ldap_authenticatable-0.6.0 test/rails_app/features/step_definitions/login_steps.rb
charanya-devise_ldap_authenticatable-0.4.6.1 test/rails_app/features/step_definitions/login_steps.rb
devise_ldap_authenticatable-0.6.0 test/rails_app/features/step_definitions/login_steps.rb
devise_ldap_authenticatable-0.5.1 test/rails_app/features/step_definitions/login_steps.rb
devise_ldap_authenticatable-0.5.0 test/rails_app/features/step_definitions/login_steps.rb
prathe_devise_ldap_authenticatable-0.4.10 test/rails_app/features/step_definitions/login_steps.rb