How can I avoid using 'FactoryGirl.reload' due to using 'sequence' in my factories?
问题 Having to use FactoryGirl.reload likely to put some overhead on the time it takes to run all tests (when many tests exist) and also it is described as an Anti-Pattern. How can I keep using the sequencing for unique fields, yet test for the correct values? You can see in my code that... I have to call FactoryGirl.reload so that the increment starts at 1 in case any previous tests have already been run. I have to state :count => 1 because there will only ever be one instance of that value. spec