mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Do sequences correctly
This commit is contained in:
parent
f3f0e829ea
commit
d381c0978f
@ -1,13 +1,15 @@
|
||||
FactoryGirl.sequence :email do |n|
|
||||
"test#{n}@example.com"
|
||||
end
|
||||
FactoryGirl.define do
|
||||
sequence :name do |n|
|
||||
"testuser#{n}"
|
||||
end
|
||||
|
||||
sequence :email do |n|
|
||||
"test#{n}@example.com"
|
||||
end
|
||||
|
||||
FactoryGirl.sequence :username do |n|
|
||||
"testuser#{n}"
|
||||
end
|
||||
|
||||
FactoryGirl.define :user do |user|
|
||||
user.name { FactoryGirl.next(:username) }
|
||||
user.email { FactoryGirl.next(:email) }
|
||||
user.password "MyString"
|
||||
factory :user do
|
||||
name
|
||||
email
|
||||
password "MyString"
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user