test/test_helper.rb
def login_as(user, password: 'password', remember_me: '1')
    post login_path, params: { session: { email: user.email,
                                          password: password,
                                          remember_me: remember_me } }
  end
# Login as a particular user.
Login as a particular user.
Login as a particular user .
def login_as(user, password: 'password', remember_me: '1')
    post login_path, params: { session: { email: user.email,
                                          password: password,
                                          remember_me: remember_me } }
  end
def login_as ( user , password : 'password' , remember_me : '1' ) post login_path , params : { session : { email : user . email , password : password , remember_me : remember_me } } end
Login as a particular user.
Login as a particular user .
user
password
remember_me