Please see latest syntax on how to define factories. https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md#defining-factories