为什么:
fi = FactoryGirl.create(:finder_item, store_id: s.id, :category_foo, :random_question)
抛出错误finder_item_spec.rb:20: syntax error, unexpected ',', expecting tASSOC (SyntaxError)
但只需重新排序,以便特征在分配之前正常工作:
fi = FactoryGirl.create(:finder_item, :category_foo, :random_question, store_id: s.id)