In a pan, add the olive oil and place it over medium heat. Once hot, add the onion and garlic. Once tender, add the rice and spices and cook for 3 minutes, until rice is heated. Add the tomato paste and cook for a further minute.
Add the stock and bring to a simmer. Reduce the heat to low, cover, and cook for 20 minutes.
Add the drained beans and cook for a further 3 minutes.