spec/support/helpers/authlogic_helper.rb
def create_user_session
      password = '12345678'
      user = User.make!(
        password: password,
        password_confirmation: password
      )
      UserSession.create!(
        email: user.email,
        password: password
      )
    end
# Generates a user and a user_session
Generates a user and a user_session
Generates a user and a user_session
def create_user_session
      password = '12345678'
      user = User.make!(
        password: password,
        password_confirmation: password
      )
      UserSession.create!(
        email: user.email,
        password: password
      )
    end
def create_user_session password = '12345678' user = User . make! ( password : password , password_confirmation : password ) UserSession . create! ( email : user . email , password : password ) end
Generates a user and a user_session
Generates a user and a user_session