Your friend was taking out her frustrations on you. It's one thing to gripe to a friend about something and it's quite another to gripe at her, for something she had nothing to do with. Not cool.

I wouldn't tolerate a friend taking her bad moods out on me on a regular basis. I try to be kind and thoughtful of my friends and expect the same in return.