Updates api_test_seeds for multiple auth_token support (#5414)

This commit is contained in:
typeoneerror 2017-12-08 13:56:11 -08:00 committed by Sam
parent 6b3aa81c11
commit d568402102

View File

@ -1,2 +1,3 @@
User.create(name: "Test User", email: "test_user@example.com", password: "password", username: "test_user", approved: true, active: true, auth_token: "39a925803ddc658a68a7e276e558ed62", admin: true)
ApiKey.create(key: 'test_d7fd0429940', user_id: 1, created_by_id: 1)
user = User.where(username: "test_user").first_or_create(name: "Test User", email: "test_user@example.com", password: SecureRandom.hex, username: "test_user", approved: true, active: true, admin: true)
UserAuthToken.generate!(user_id: user.id)
ApiKey.create(key: 'test_d7fd0429940', user_id: user.id, created_by_id: user.id)