Javi Martín
f9ed186909
Add rubocop spacing rules
...
We were following these rules in most places; we just didn't define them
anywhere.
2019-09-10 21:04:56 +02:00
Javi Martín
a21240b230
Use Date.current and Time.current
...
Using Date.today and Time.now might lead to inconsistencies if the time
zone the application uses is not the same as the system time zone.
2019-08-28 20:32:40 +02:00
Javi Martín
2215971a6b
Remove unused code
2019-05-21 13:50:18 +02:00
Julian Herrero
31ac8b7f55
Change single quotes to double quotes
2019-02-15 11:40:39 +01:00
Javi Martín
f2bebca6be
Bring back and fix deleted test
...
It was removed in 755be96 because some tags were allowed, but we can
just update it to check it doesn't remove those tags.
2018-09-12 12:35:28 +02:00
Raúl Fuentes
bf0472fd58
Fix test
...
now the <a> tag is permited, also the list of allowed tags is in
the configuration of ckeditor4
2018-09-12 12:35:28 +02:00
iagirre
c37496601c
Budget and phases specs updated (model specs) to include the new 'Information' phase
2018-01-23 15:42:01 +01:00
Bertocq
313d8d2e11
Adjust date ranges of prev/next phases when enabling/disabling a Budget::Phase, with model specs
2018-01-16 15:20:18 +01:00
Bertocq
601351d160
Validate next/prev phases before saving a Budget::Phase, with model specs
2018-01-16 15:20:17 +01:00
Bertocq
d505cda949
Add description sanitization to Budget::Phase with model specs
2018-01-16 12:18:13 +01:00
Bertocq
21b62106e5
Add next/prev enabled phase helper functions to Budget::Phase with model specs
2018-01-16 12:18:13 +01:00
Bertocq
36e74d0ef2
Add Budget::Phase model, spec and factory
...
Create a new Budget::Phase model that:
* Stablishes a relation with its budget
* Stablishes relation with two other Budget::Phases (previous and next)
* Validates basic dates range, kind and description rules.
* Adds scopes to get the ones enabled as well as each individual phase
Create a factory that generates a basic and valid Budget::Phase
Create a model spec that checks kind, date range and budget validations.
2018-01-16 12:18:13 +01:00