Browse Source
* feat: start adding scheme validation for when owning org doesn't hold stock * feat: don't set owning_organisation = nil in validate_owning_organisation * style: line code * test: remove redundant test for missing owning org * test: add test for invalid owning org id (invalid as doesn't hold stock) * test: add test that including owning org does nothing when user is coordinator * test: standardise missing params test descriptions in schemes_controller_spec * test: remove owning org id from required params list for data coordinators * test: write "support user", not just "support" * test: fix incorrect test descriptions * test: test validation raised when updating model with non-stock-owning org * config: set dummy_org in seeds as holding own stock * test: test for actual validation string, not the validation lookup * refactor: change owning_organisation_id: organisation.id to owning_organisation: organisation * test: move scheme params def onto 1 line * style: move "validate :validate_owning_organisation" onto new linepull/1070/head
SamSeed-Softwire
2 years ago
committed by
GitHub
5 changed files with 43 additions and 12 deletions
Loading…
Reference in new issue