Skip to content

Instantly share code, notes, and snippets.

@rokkit
Created April 23, 2014 19:02
Show Gist options
  • Select an option

  • Save rokkit/11228343 to your computer and use it in GitHub Desktop.

Select an option

Save rokkit/11228343 to your computer and use it in GitHub Desktop.
Faker generate duplicate data with FactoryGirl
Use brackets!
FactoryGirl.define do
factory :user do
name { Faker::Name.name }
email { Faker::Internet.email }
provider "google_oauth2"
uid { Faker::Lorem.word }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment