You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
379 B
16 lines
379 B
12 years ago
|
# more sample users
|
||
|
users = [User.find_by_email('user@entrydns.net')]
|
||
|
for i in 1..3 do
|
||
|
name = "user#{i}"
|
||
|
user = User.new(
|
||
|
:first_name => name,
|
||
|
:last_name => name,
|
||
|
:email => "#{name}@entrydns.net",
|
||
|
:password => 'useruser',
|
||
|
:password_confirmation => 'useruser'
|
||
|
)
|
||
|
user.confirmed_at = Time.now
|
||
|
user.save!
|
||
|
user.confirm!
|
||
|
users << user unless i > 3
|
||
|
end
|