test/test_helper.rb
# Log in as a particular user.
#
Log in as a particular user.
Log in as a particular user .
def log_in_as(user, password: 'password', remember_me: '1')
    post login_path, params: { session: {email: user.email,
                                         password: password,
                                         remember_me: remember_me } }
  end
def log_in_as ( user , password : 'password' , remember_me : '1' ) post login_path , params : { session : { email : user . email , password : password , remember_me : remember_me } } end
Log in as a particular user.
Log in as a particular user .
user
<not_specific>
password
<not_specific>
remember_me
<not_specific>