Created
September 28, 2011 14:17
-
-
Save brandon-beacher/1248051 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Factory.define :user do |user| | |
f.sequence(:email) { |n| "user#{n}@example.com" } | |
end | |
> Factory.create(:user) | |
=> #<User id: 1, email: "[email protected]"> | |
> Factory.create(:user) | |
=> #<User id: 2, email: "[email protected]"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment