User model test - still need the strong password and email validation.
This commit is contained in:
34
test/fixtures/users.yml
vendored
34
test/fixtures/users.yml
vendored
@@ -4,8 +4,32 @@
|
||||
# model remove the "{}" from the fixture names and add the columns immediately
|
||||
# below each fixture, per the syntax in the comments below
|
||||
#
|
||||
# one: {}
|
||||
# # column: value
|
||||
# #
|
||||
# two: {}
|
||||
# # column: value
|
||||
admin:
|
||||
email: "jez@hiddenagenda.ltd.uk"
|
||||
encrypted_password: <%= Devise::Encryptor.digest(User,'password') %>
|
||||
reset_password_token: <%= nil %>
|
||||
remember_created_at: <%= nil %>
|
||||
sign_in_count: 1
|
||||
current_sign_in_at: "2012-11-16 11:49:12"
|
||||
last_sign_in_at: "2012-11-16 11:49:12"
|
||||
current_sign_in_ip: "127.0.0.1"
|
||||
last_sign_in_ip: "127.0.0.1"
|
||||
failed_attempts: 0
|
||||
locked_at: <%= nil %>
|
||||
role: 1000
|
||||
|
||||
user:
|
||||
email: "user@hiddenagenda.ltd.uk"
|
||||
encrypted_password: <%= Devise::Encryptor.digest(User,'password') %>
|
||||
reset_password_token: <%= nil %>
|
||||
remember_created_at: <%= nil %>
|
||||
sign_in_count: 1
|
||||
current_sign_in_at: "2012-11-16 11:49:12"
|
||||
last_sign_in_at: "2012-11-16 11:49:12"
|
||||
current_sign_in_ip: "127.0.0.1"
|
||||
last_sign_in_ip: "127.0.0.1"
|
||||
failed_attempts: 0
|
||||
locked_at: <%= nil %>
|
||||
role: 100
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user