Naya Rivera wed Ryan Dorsey in Mexico on July 19.

Story highlights

"Glee" actress Naya Rivera is married

She wed actor Ryan Dorsey in Mexico on July 19

The news caught some fans off guard

CNN  — 

“Glee” star Naya Rivera is now Mrs. Ryan Dorsey.

The 27-year-old actress has surprised fans with the news that she married fellow actor Dorsey in Cabo San Lucas, Mexico, on Saturday.

People magazine, which first reported the nuptials, says the pair kept the guest list to close family.

“I’m so happy for her even though it was kind of sudden,” tweeted one onlooker, while another Twitter user was playing catchup with the star’s abrupt name change. “Umm naya rivera dorsey? She got married?? Congrats!”

According to People, Rivera and Dorsey, who’s made appearances in “Southland” and the new FX comedy “You’re the Worst,” were longtime friends before deciding to become husband and wife. The magazine indicates that Dorsey’s relationship with Rivera changed after her engagement with rapper Big Sean ended in April.

“We feel truly blessed to be joined as husband and wife,” Rivera and Dorsey told People in a joint statement. “Our special day was fated and everything we could have ever asked for.”

CNN’s Joan Yeam contributed to this report.