By running Factory(:provider), the entry is automatically committed to the database. This means that trying to take that opject and post it to the API causes an error since the row already exists in the database. By running FactoryGirl.build, we instead create an unsaved copy of the object and post that object instead.
By running Factory(:provider), the entry is automatically committed to the database. This means that trying to take that opject and post it to the API causes an error since the row already exists in the database. By running FactoryGirl.build, we instead create an unsaved copy of the object and post that object instead.

alabama-medicaid-mu/popHealth,OSEHRA/popHealth,OSEHRA/popHealth,yss-miawptgm/popHealth,q-centrix/popHealth,yss-miawptgm/popHealth,q-centrix/popHealth,OSEHRA/popHealth,lrasmus/popHealth,OSEHRA/popHealth,q-centrix/popHealth,smc-ssiddiqui/popHealth,pophealth/popHealth,yss-miawptgm/popHealth,lrasmus/popHealth,jeremyklein/popHealth,jeremyklein/popHealth,ELXR/popHealth,ELXR/popHealth,eedrummer/popHealth,lrasmus/popHealth,eedrummer/popHealth,pophealth/popHealth,jeremyklein/popHealth,q-centrix/popHealth,smc-ssiddiqui/popHealth,alabama-medicaid-mu/popHealth,eedrummer/popHealth,lrasmus/popHealth,ELXR/popHealth,ELXR/popHealth,smc-ssiddiqui/popHealth,alabama-medicaid-mu/popHealth,jeremyklein/popHealth,alabama-medicaid-mu/popHealth,pophealth/popHealth,yss-miawptgm/popHealth,smc-ssiddiqui/popHealth,eedrummer/popHealth