Sam Seed
4565e4382e
wip
2 years ago
Sam Seed
01c5d0876e
test: don't create vars inside other vars (for tests edited/created in this branch)
2 years ago
Sam Seed
b9469f1090
test: explicitly reference org rels in "coordinator user's org doesn't hold stock" managing org test
2 years ago
Sam Seed
fa30f9b20a
test: remove if statement from "coordinator user's org does hold stock" >=1 managing orgs managing org test
...
plus refactor previous test
2 years ago
Sam Seed
3cc29b79b5
test: remove if statement from "coordinator user's org does hold stock" no managing orgs managing org test
2 years ago
Sam Seed
5e02bff44f
test: remove if statement from "coordinator user's org doesn't hold stock" managing org test
2 years ago
Sam Seed
960e507644
test: change let! to let where possible in spec/models/form/lettings/questions/stock_owner_spec.rb
2 years ago
Sam Seed
01f17c4ec9
test: change let! to let where possible in spec/models/form/lettings/questions/managing_organisation_spec.rb
2 years ago
Sam Seed
4478bb57ae
test: change let! to let where possible in spec/features/lettings_log_spec.rb
2 years ago
Sam Seed
a5dc9d892b
test: finish overhauling owning and managing org tests in lettings_log_spec
2 years ago
Sam Seed
10d8ef8dd0
test: improve test context descriptions in lettings_log_spec
2 years ago
Sam Seed
b7082c6212
feat: don't set log owning org as user's org if that org doesn't hold stock
2 years ago
Sam Seed
0d2bc50c4d
test: artificially reference org_rel2 to avoid lint offense
2 years ago
Sam Seed
09a052ef40
test: add line breaks and start context descriptions with and (not if)
2 years ago
Sam Seed
5ab11218b9
test: check owning & managing orgs set correctly when a log is created
2 years ago
Sam Seed
ac0022b9e7
test: update lettings log feature tests
...
to differentiate between different numbers of stock owners when acting as a data coordinator
2 years ago
Sam Seed
2e32567a8b
lint
2 years ago
Sam Seed
37d843915f
fix: define log and current_user instance vars in label_from_value (housing prov.)
2 years ago
Sam Seed
f377bc0c16
test: check housing prov. still selectable after deleting relationship
2 years ago
Sam Seed
72650683a5
test: refactor housing providers opts tests (not support user)
2 years ago
Sam Seed
99858867b3
test: make context definition more human-readable
2 years ago
Sam Seed
aa311b4674
style: add space after user definition
2 years ago
Sam Seed
443239f3d5
feat: update housing provider answer opts to include current HP in db
2 years ago
Sam Seed
78dd4b2961
test: update housing provider opts tests for non-support user
2 years ago
Sam Seed
7fda40e1e5
test: pass in log and user in housing provider opts test for support user
2 years ago
Sam Seed
cacb18265a
lint
2 years ago
Sam Seed
1c5eb09290
refactor: ensure label_from_value always accepts log & nil as args
2 years ago
Sam Seed
308bc9f090
style: reorder instance vars and remove old comments in managing_organisation.rb
2 years ago
Sam Seed
18f1ede496
fix: don't call user in get_answer_label in CYA component
2 years ago
Sam Seed
bb04ed0d9a
test: refactor managing orgs opts tests for support user case
2 years ago
Sam Seed
b0c899032f
test: add "(with hint)" to managing org opts test descriptions
2 years ago
Sam Seed
8ae8775b44
test: make relationship deletion test consistent with other tests
2 years ago
Sam Seed
a609102553
test: improve managing orgs opts tests when support
2 years ago
Sam Seed
e2077dbe16
test: improve managing orgs opts test when not support
2 years ago
Phil Lee
0fa8337e9f
wip
2 years ago
Sam Seed
ee469ccd29
feat: check if managing org exists before trying to show it
2 years ago
Sam Seed
17ba578f49
feat: add current managing org to answer opts
2 years ago
Sam Seed
6aa4fd587d
test: check managing org not gone from answer opts when relationship deleted
2 years ago
Jack
d4e8e64c28
CLDC-863 Add practical completion/handover date validations ( #1198 )
...
* [CLDC-863] Add hard validation for hodate
* Add soft validation
2 years ago
kosiakkatrina
d9a57ec1cb
CLDC-1627 Enable multiple inferred answers ( #1077 )
...
* Enable multiple inferred check answers values
* lint and add new conditions to check answers for age1
* Rename method
* Refactor inferred answer value
* rebase update
* update inferred_check_answers_value after rebase
* Move the method to private
* Add a missing test
* rebase changes
* Add prefers not to say as the displayed value for all household members
* update [0] to .first
* replace [0] with .first
2 years ago
natdeanlewissoftwire
9e9ff8a4e2
CLDC-850 Add relationship to buyer 1 validation to sales log ( #1178 )
...
* feat: add sales partner count validation
* test: update tests
* test: add new test
* refactor: DRYing
* feat: DRY general household member validation
* feat: add tests
* db: update
* feat: update shared validations
* test: update tests
* feat: add more validations
* feat: add more validation and update tests
* feat: add update method test
* test: update sales_log factory
* refactor: linting
* feat: remove numbering
* test: update tests
* feat: rename i18n vars, add validations everywhere
* tests: add new tests for new validation occurences
* db: update
* feat: add partner number validation to relevant fields rather than base
* test: update tests
* tests: refactor
* test: update
2 years ago
kosiakkatrina
96b3aa4765
Gem upgrades ( #1206 )
...
* Update rack
* update globalid
* Update rails
2 years ago
Jack
ced6457a19
CLDC-1878 Add hint to mortgage amount question ( #1203 )
2 years ago
natdeanlewissoftwire
47ddf87282
CLDC-1858 Add new collection resources design ( #1204 )
...
* feat: update collection resources with new lettings log link and design
* refactor: linting
* feat: update size (previously was using in browser size not post-download)
2 years ago
Jack
45710ed661
CLDC 911 add hard validation to cash deposit ( #1186 )
...
* Tidy up test file
* Add hard validation to cash deposit
* Load validations
2 years ago
Jack
826eaf22f1
CLDC-1746 Show Handover question also on not on resale ( #1183 )
2 years ago
SamSeed-Softwire
c07dde6794
fix: correct no-stock user names + update emails to prevent duplicates ( #1185 )
2 years ago
natdeanlewissoftwire
0099f7f46f
feat: remove association ( #1196 )
2 years ago
natdeanlewissoftwire
ecdc4d99c5
CLDC-1726 Update scheme and location display pages ( #1190 )
...
* feat: update scheme and log displays
* test: update tests
* test: update tests
2 years ago
natdeanlewissoftwire
daed7965e2
CLDC-1751 add extra borrowing question ( #1165 )
...
* feat: add page, tests, and update db
* feat: add depends on behaviour
* refactor: linting
* db: update
* db: update
2 years ago