Wash and trim the beans, then boil them in lightly salted water until crisp-tender. Drain, shock, and set aside. In a bowl, whisk together the oil, vinegar, and spices. Add the dressing and chopped onion to the bowl with the green beans. Toss, chill, and serve!