Cook the beans according to the package instructions.
Pour out the water and drain the beans in a colander.
Put the pot back on the stove and heat the oil.
Add the onion and garlic, and cook for a couple of minutes until translucent.
Add the beans, tomatoes, spices and stir together.