Skip to content
Permalink
Newer
Older
100644 17 lines (15 sloc) 334 Bytes
Nov 5, 2013
1
FactoryGirl.define do
2
factory :user do
3
sequence(:name) { |n| "Person #{n}" }
4
sequence(:email) { |n| "person_#{n}@example.com"}
5
password "foobar"
6
password_confirmation "foobar"
7
8
factory :admin do
9
admin true
10
end
11
end
12
13
factory :micropost do
14
content "Lorem ipsum"
15
user
Nov 5, 2013
16
end
17
end
You can’t perform that action at this time.