db/seeds.rb and README.md files modified (#1747)

This commit is contained in:
Orne Virardi
2022-06-10 01:34:01 -07:00
committed by GitHub
parent b8cec55371
commit 4b8054365f
2 changed files with 2 additions and 4 deletions

View File

@@ -213,8 +213,7 @@ User.create({login: 'harry', name: 'harry potter', email: 'potter@hogwarts.com'}
# admin account path - http://localhost:3000/local/albus
# created from:
u_admin = User.create({login: 'albus', name: 'albus dumbledore', email: 'dumbledore@hogwarts.com'})
u_admin.role = 'admin'
u_admin = User.create({login: 'albus', name: 'albus dumbledore', email: 'dumbledore@hogwarts.com', role: 'admin'})
```
## Running tests

View File

@@ -5,8 +5,7 @@ USERS = []
USERS << User.create({login: 'harry', name: 'harry potter', email: 'potter@hogwarts.com'})
# admin account
u_admin = User.create({login: 'albus', name: 'albus dumbledore', email: 'dumbledore@hogwarts.com'})
u_admin.role = 'admin'
u_admin = User.create({login: 'albus', name: 'albus dumbledore', email: 'dumbledore@hogwarts.com', role: 'admin'})
USERS.push(u_admin)
# a few randomized basic accounts to have varied map authors