2013-02-06 03:16:51 +08:00
|
|
|
Fabricator(:user) do
|
|
|
|
name 'Bruce Wayne'
|
|
|
|
username { sequence(:username) { |i| "bruce#{i}" } }
|
|
|
|
email { sequence(:email) { |i| "bruce#{i}@wayne.com" } }
|
|
|
|
password 'myawesomepassword'
|
2013-03-01 20:07:44 +08:00
|
|
|
trust_level TrustLevel.levels[:basic]
|
2013-02-06 03:16:51 +08:00
|
|
|
bio_raw "I'm batman!"
|
|
|
|
end
|
|
|
|
|
|
|
|
Fabricator(:coding_horror, from: :user) do
|
|
|
|
name 'Coding Horror'
|
2013-02-26 00:42:20 +08:00
|
|
|
username 'CodingHorror'
|
2013-02-06 03:16:51 +08:00
|
|
|
email 'jeff@somewhere.com'
|
|
|
|
password 'mymoreawesomepassword'
|
|
|
|
end
|
|
|
|
|
|
|
|
Fabricator(:evil_trout, from: :user) do
|
|
|
|
name 'Evil Trout'
|
2013-02-26 00:42:20 +08:00
|
|
|
username 'eviltrout'
|
2013-02-06 03:16:51 +08:00
|
|
|
email 'eviltrout@somewhere.com'
|
|
|
|
password 'imafish'
|
|
|
|
end
|
|
|
|
|
|
|
|
Fabricator(:walter_white, from: :user) do
|
|
|
|
name 'Walter White'
|
2013-02-26 00:42:20 +08:00
|
|
|
username 'heisenberg'
|
2013-02-06 03:16:51 +08:00
|
|
|
email 'wwhite@bluemeth.com'
|
|
|
|
password 'letscook'
|
|
|
|
end
|
|
|
|
|
|
|
|
Fabricator(:moderator, from: :user) do
|
|
|
|
name 'A. Moderator'
|
|
|
|
username 'moderator'
|
|
|
|
email 'moderator@discourse.org'
|
2013-03-01 20:07:44 +08:00
|
|
|
trust_level TrustLevel.levels[:moderator]
|
2013-02-06 03:16:51 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
Fabricator(:admin, from: :user) do
|
|
|
|
name 'Anne Admin'
|
|
|
|
username 'anne'
|
|
|
|
email 'anne@discourse.org'
|
|
|
|
admin true
|
|
|
|
end
|
|
|
|
|
|
|
|
Fabricator(:another_admin, from: :user) do
|
|
|
|
name 'Anne Admin the 2nd'
|
|
|
|
username 'anne2'
|
|
|
|
email 'anne2@discourse.org'
|
|
|
|
admin true
|
|
|
|
end
|
|
|
|
|