FactoryGirl and polymorphic associations
The design I have a User model that belongs to a profile through a polymorphic association. The reason I chose this design can be found here . To summarize, there are many users of the application that have really different profiles. class User < ActiveRecord::Base belongs_to :profile, :dependent => :destroy, :polymorphic => true end class Artist < ActiveRecord::Base has_one :user, :as => :profile end class Musician < ActiveRecord::Base has_one :user, :as => :profile end After choosing this design, I'm having a hard time coming up with good tests. Using FactoryGirl and RSpec, I'm not sure how