If you've owed your Toyota Rav4 for at least 2 years and you need to pass the smog check so that you can renew your vehicle's registration, then you might want to look into the state's Consumer Assistance Repair Program which can pay up to $500.00 in smog check repairs, and if repairs are needed in an amount above $500.00, receive a one time smog check waiver through the smog check referee's office.
If this is vehicle which you've recently purchased and need a smog check to transfer the title to your name, unfortunately the repair assistance program will not be available to you. You will need to perform all repairs necessary to get your Toyota Rav4 to pass the smog check yourself.