Skip to content

Instantly share code, notes, and snippets.

@psychocandy
Created May 28, 2013 13:14
Show Gist options
  • Save psychocandy/5662661 to your computer and use it in GitHub Desktop.
Save psychocandy/5662661 to your computer and use it in GitHub Desktop.
Factory girl example
# one way:
FactoryGirl.create_list(:monetization_campaign, 10)
# another way:
10.times { FactoryGirl.create(:monetization_campaign) }
# guarentee ids:
10.times { |n| FactoryGirl.create(:monetization_campaign, id: n) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment