you want to make sure that there associated. {FactoryGirl.create(:picture, user: user}