Your `user` and `votable` should be associations.

https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md#associations