aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/shared_examples
AgeCommit message (Collapse)Author
2018-03-29Fix MinMax ValidationZog
2018-01-11Fix vehicle_journey_control for min max values Refs #5543 @2Luc Donnet
2017-12-21Remove `hstore_accessor` usageTeddy Wing
The places we were using `hstore_accessor` have now been converted to Postgres JSON fields. Thus we no longer need `hstore_accessor` in order to add accessors for the fields. Instead we can use Rails' built-in support for Postgres JSON fields and create accessors for our JSON hash keys with `store_accessor`. We get rid of the data types because `store_accessor` doesn't work like that and JSON already types our values with primitive data types. Finally, add some extra validation tests now that the vaildation for our JSON fields should work. Refs #5316
2017-10-16Refs: #4720@1.3h;Robert
Validation implemented for min_max_values with correct I18n'd error messages Applied to: VehicleJourneyControl::Speed & GenericAttributeControl::MinMax
2017-10-02Refs: #4267@0.45h;Robert
- setting up a CCCLD subdir struct for CCCLD related tests - removed all occcurances of `@@default_criticity`
2017-10-02Refs: #4627@1h;Robert
- Rebase on udated master - Removal of `default_criticity` from ComplianceControl Class Level Defaults - Refactoring of specs to allow usage of the same shared examples (given that more models need to undergo the same refact)