Created
July 1, 2015 05:37
-
-
Save dankozlowski/d72d6b4fa639140c5167 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
# Defines a new sequence | |
FactoryGirl.define do | |
sequence :email do |n| | |
"person#{n}@example.com" | |
end | |
end | |
generate :email | |
# => "person1@example.com" | |
generate :email | |
# => "person2@example.com" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment