Use a sequence for User email attribute

This commit is contained in:
Thibault Jouan 2011-09-08 22:24:45 +00:00
parent 7d74024dc0
commit 35b081ed68

View File

@ -11,7 +11,9 @@ FactoryGirl.define do
end end
factory :user do factory :user do
email 'alice@example.net' sequence :email do |n|
"alice_#{n}@example.net"
end
password '733tP4s5' password '733tP4s5'
end end
end end