Sha256: d07eb8939d3a5717be8240b5b5b2b4bcec652d4779b5e53eb3e655cd088ca3b2
Contents?: true
Size: 446 Bytes
Versions: 4
Compression:
Stored size: 446 Bytes
Contents
module ActiveAdmin::SignInHelper def sign_in(admin_user) post admin_user_session_path, { :admin_user => { :email => admin_user.email, :password => admin_user.password } } end def sign_in_with(email, password) visit '/admin/login' fill_in 'admin_user[email]', :with => email fill_in 'admin_user[password]', :with => password find(:xpath, '//input[@type="submit"]').click end end
Version data entries
4 entries across 4 versions & 1 rubygems