Sha256: 7f42dbd97fb9f7a5fb33ddbcb5ce7fd13a1df5c99ff2fd766b8574664f218c1f
Contents?: true
Size: 898 Bytes
Versions: 3
Compression:
Stored size: 898 Bytes
Contents
$email_count ||= 0 def generate_unique_email $email_count += 1 "test#{$email_count}@example.com" end def valid_attributes(attributes={}) { :email => generate_unique_email, :password => '12345678', :password_confirmation => '12345678' }.update(attributes) end def new_user(attributes={}) User.new(valid_attributes(attributes)) end def create_user(attributes={}) User.create!(valid_attributes(attributes)) end def fill_sign_in_form(email, password, form_selector = nil, sign_in_path = nil) form_selector ||= '#new_user' sign_in_path ||= new_user_session_path visit sign_in_path within(form_selector) do fill_in 'Email', :with => email fill_in 'Password', :with => password end click_on 'Log in' end def duo_init Devise::DuoSecurity.configure do |config| config.app_secret = "" config.ikey = "" config.skey = "" config.host = "" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
devise_duo_sec-1.0.0 | test/support/helpers.rb |
devise_duo_sec-0.1.0 | test/support/helpers.rb |
devise_duo_sec-0.0.7 | test/support/helpers.rb |