1
0

71 Commits

Author SHA1 Message Date
cryptogopher
788dbc67c1 Select date with at least one target undefined...
...in: test_create_duplicated_targets_should_fail
Add assert messages for clarification
2021-04-26 02:19:49 +02:00
cryptogopher
2fcc1e2ed1 Avoid date and quantity collision in test_update_binding_target
Shorten goal references
2021-04-26 01:57:35 +02:00
cryptogopher
ab40c3bb0b Test pass: test_update_swap_targets
New fixtures + test fixes
2021-04-26 00:16:10 +02:00
cryptogopher
bbc1467965 Parametrize Target routes with :date 2021-04-25 15:25:41 +02:00
cryptogopher
d4398e5b75 Split test_edit_binding_target & test_update_binding_target 2021-04-24 21:40:48 +02:00
cryptogopher
bea0a8371d WIP Targets #edit/#update
NestedUniqueness properly restores collection.target
2021-04-23 19:19:44 +02:00
cryptogopher
1b634dea2b Test pass: test_create_duplicated_targets_should_fail 2021-04-19 23:26:52 +02:00
cryptogopher
0b9401b089 Proper nested records uniqueness validation
Test pass: test_create_duplicate_for_persisted_target_should_fail
2021-04-19 00:38:28 +02:00
cryptogopher
dad116c573 Test pass: test_create_with_subthresholds
Add date to test_create_binding_target
2021-03-22 02:38:27 +01:00
cryptogopher
291fa044c3 Randomize test values
test_create_binding_target_when_binding_goal_does_not_exist
2021-03-22 01:01:04 +01:00
cryptogopher
0bc750278d Randomize values in test_create_binding_target 2021-03-22 00:41:24 +01:00
cryptogopher
91fa25830d Randomize quantity in test_index_table_header_close_exposure
Rename: Goal.target_exposures -> Goal.exposures
2021-03-22 00:22:33 +01:00
cryptogopher
0eefcb29db Test random quantity in test_index_options_add_exposure
Rename: @project1 -> @project
2021-03-22 00:10:23 +01:00
cryptogopher
a92df8b9aa Test pass: test_create_binding_target_when_binding_goal_does_not_exist 2021-03-17 01:10:51 +01:00
cryptogopher
b53dc71d6d Test pass: test_new_binding_target, test_new_cancel 2021-03-17 01:02:48 +01:00
cryptogopher
c21c834d84 Test pass: test_index_binding_goal_without_targets 2021-03-13 16:43:10 +01:00
cryptogopher
56e131af93 Test pass: test_index_without_goals 2021-03-07 15:19:40 +01:00
cryptogopher
115434fa0e Test pass: test_index_binding_targets 2021-03-07 15:17:29 +01:00
cryptogopher
bbe82aa715 Add Goals tests
Test pass: test_index
2021-03-07 15:13:41 +01:00
cryptogopher
5b73e9e7fd Fix targets#create 2021-03-07 15:07:45 +01:00
cryptogopher
7f87b3bc84 Add GoalController: #index, #new, #create 2021-02-21 18:10:15 +01:00
cryptogopher
ea308a1e4a WIP: targets forms 2021-02-21 11:33:30 +01:00
cryptogopher
8b17b33603 WIP: Targets configurable with Quantities 2021-02-07 11:02:41 +01:00
cryptogopher
aa20931635 Test: test_update 2021-01-25 19:14:39 +01:00
cryptogopher
817f170a62 Check created record attributes 2021-01-25 18:27:48 +01:00
cryptogopher
cb4c528908 Test pass: test_edit 2021-01-24 15:05:54 +01:00
cryptogopher
8bd102f8de Test pass: test_new, test_new_cancel 2021-01-21 18:09:40 +01:00
cryptogopher
80b10d108a Test pass: test_index_table_header_close_exposure
Allow closing last quantity column
2021-01-21 11:17:51 +01:00
cryptogopher
7d096748bf Test pass: test_index_options_add_exposure 2021-01-19 18:53:02 +01:00
cryptogopher
07eda42de4 New test: test_index_options_add_column 2021-01-19 12:57:57 +01:00
cryptogopher
8be1533667 Extended wait time after defaults loading to avoid failures 2020-08-29 01:45:38 +02:00
cryptogopher
1b7f2f0abd Added test_defaults_seed_and_load_into_empty_project
Added :defaults scopes to models
Added :sources and :formulas fixtures
Loading defaults from seeds.rb using rake task instead of migration
2020-08-29 01:26:36 +02:00
cryptogopher
8f2a455561 Added defaults load test 2020-08-26 02:07:36 +02:00
cryptogopher
6ba8ad5376 Preliminary Target :edit support 2020-08-25 02:55:21 +02:00
cryptogopher
cf0e14d87d Allow binding goal saving w/o exposures and disallow destruction 2020-08-22 23:17:24 +02:00
cryptogopher
8f0e718b4a Test refinements 2020-08-22 16:28:12 +02:00
cryptogopher
8b43f22e66 Added: test_create_binding_target_when_binding_goal_does_not_exist 2020-08-22 16:11:43 +02:00
cryptogopher
d8a8d9f75e Added test_index_shows_and_hides_new_target_form
Removed redundant path asserts (checking path and page content is
either redundant or it's enough to check in one test only)
2020-08-20 21:59:33 +02:00
cryptogopher
f9ba308072 Added test_create_binding_target
Goals (incl. binding) are required to have targets
Plugin fixtures are available through accessors
2020-08-20 21:52:18 +02:00
cryptogopher
13974e5e2f Completed test_index_without_targets 2020-08-18 21:49:12 +02:00
cryptogopher
266794cfe6 Purge screenshots before test suite 2020-08-18 21:14:28 +02:00
cryptogopher
59a14043c8 Added is_binding attribute to Goal
Fixed test_index to check for data rows only
2020-08-18 17:40:46 +02:00
cryptogopher
955125b843 Target system tests started to run 2020-08-16 15:27:07 +02:00
cryptogopher
66a364d017 Added system tests under Redmine 4 2020-08-08 15:39:13 +02:00
cryptogopher
74c863c73a FormulaBuilder now recognizes qualified quantity identifiers 2020-06-06 15:58:12 +02:00
cryptogopher
fa9c329a81 Formula#calculate is using QuantityInput
Updated FormulaBuilder to properly index parts[]
2020-05-17 18:14:19 +02:00
cryptogopher
8749710330 Formula can contain model method calls 2020-05-05 01:52:34 +02:00
cryptogopher
a4781b4fcd Renamed: column -> exposure
Moved toggle_column_options to body_trackers helper
2020-04-25 15:42:22 +02:00
cryptogopher
8e8160c41a Renamed Ingredient -> Food
Ingredient is now part of composition (meal/recipe/dish)
2020-04-14 19:44:19 +02:00
cryptogopher
ced06a25bc Added :meals and :compositions_ingredients tables
Changed Column -> QuantityColumn
Updated :ingredients table to handle recipes
2020-04-13 01:11:34 +02:00