Sha256: 8921325b9581b68b61932f8d1a4bf6c923b533ba17a7905a7a1c89e5b7a3dd9f
Contents?: true
Size: 606 Bytes
Versions: 5
Compression:
Stored size: 606 Bytes
Contents
module TestHelpers module AuthenticationHelper def login(options={}) username = options[:username] || "bricker" email = options[:email] || "bricker1@kpcc.org" password = options[:password] || "secret55" @user = create :user, :username => username, :email => email, :password => password, :password_confirmation => password visit outpost.login_path fill_in "email", with: @user.email fill_in "password", with: password click_button "Submit" end end end
Version data entries
5 entries across 5 versions & 1 rubygems