Target system tests started to run
This commit is contained in:
4
test/fixtures/exposures.yml
vendored
Normal file
4
test/fixtures/exposures.yml
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
exposures_01:
|
||||
view_type: Goal
|
||||
view_id: <%= Project.find(1).goals.binding.id %>
|
||||
quantity: quantities_energy
|
||||
8
test/fixtures/quantities.yml
vendored
Normal file
8
test/fixtures/quantities.yml
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
quantities_energy:
|
||||
project: projects_001
|
||||
domain: diet
|
||||
parent: null
|
||||
lft: 1
|
||||
rgt: 2
|
||||
name: Energy
|
||||
description: Total energy
|
||||
7
test/fixtures/quantity_values.yml
vendored
Normal file
7
test/fixtures/quantity_values.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
quantity_values_001:
|
||||
type: Threshold
|
||||
registry_type: Target
|
||||
registry: targets_01
|
||||
quantity: quantities_energy
|
||||
value: 2500
|
||||
unit: units_kcal
|
||||
2
test/fixtures/targets.yml
vendored
2
test/fixtures/targets.yml
vendored
@@ -1,2 +1,4 @@
|
||||
targets_01:
|
||||
goal_id: <%= Project.find(1).goals.binding.id %>
|
||||
condition: '=='
|
||||
effective_from: <%= 1.week.ago.to_s(:db) %>
|
||||
|
||||
14
test/fixtures/units.yml
vendored
Normal file
14
test/fixtures/units.yml
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
units_gram:
|
||||
project: projects_001
|
||||
name: 'gram'
|
||||
shortname: 'g'
|
||||
|
||||
units_percent:
|
||||
project: projects_001
|
||||
name: 'percent'
|
||||
shortname: '%'
|
||||
|
||||
units_kcal:
|
||||
project: projects_001
|
||||
name: 'kilocalorie'
|
||||
shortname: 'kcal'
|
||||
Reference in New Issue
Block a user