Improve tests, extend fixtures

This commit is contained in:
2026-07-08 16:00:25 +02:00
parent 30c80e6e2e
commit ef8214cfa7
7 changed files with 109 additions and 55 deletions

View File

@@ -34,6 +34,20 @@ mg:
description: milligram
multiplier: 0.001
base: g
mkg:
user: admin
symbol: mkg
description: millikilogram
multiplier: 1.0
base: g
kcal:
user: admin
symbol: kcal
kJ:
user: admin
symbol: kJ
multiplier: 4.184
base: kcal
g_alice:
user: alice
symbol: g

View File

@@ -9,7 +9,12 @@ alice:
encrypted_password: <%= Devise::Encryptor.digest(User, 'alice') %>
confirmed_at: <%= DateTime.now - 7.days %>
bob:
email: bob@gmail.com
email: bob@g.net
status: active
encrypted_password: <%= Devise::Encryptor.digest(User, 'bob') %>
confirmed_at:
carlos:
email: carlos@noreply-to-me.ever.gov
status: active
encrypted_password: <%= Devise::Encryptor.digest(User, 'carlos') %>
confirmed_at: <%= DateTime.now - 2.months %>