Skip to content

Instantly share code, notes, and snippets.

@apolzon
Created January 29, 2011 00:51
Show Gist options
  • Select an option

  • Save apolzon/801349 to your computer and use it in GitHub Desktop.

Select an option

Save apolzon/801349 to your computer and use it in GitHub Desktop.
puts "factory id: #{@user.id}"
User.destroy_all
puts "factory id after destroyall : #{Factory(:user).id}"
yields:
factory id: 942334689
factory id after destroyall : 942334690
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment