osem-fcy/spec
Asish Kumar 11e7c27759 Avoid crash validating event type with blank length
The `length_step` validator runs unconditionally for every record and
calls `length % program.schedule_interval`. When the length field is
left blank in the admin form, `length` is nil and `length %` raises
NoMethodError, returning a 500 Internal Server Error instead of a
regular validation failure.

Skip the divisor check unless `length` is numeric so that the
`numericality` validator on `:length` can produce a proper error
message, restoring the usual validation feedback.
2026-05-14 09:18:39 +05:30
..
ability Drop Organization abilities 2024-06-07 16:16:02 +02:00
controllers Also clear ENV when manipulating it 2025-08-13 11:21:23 +02:00
datatables Use CSS-compatible row IDs in datatables 2022-09-13 11:06:22 -07:00
factories Fix various typos 2025-10-15 11:15:47 +00:00
features Drop Rails.application.secrets usage 2025-08-12 17:27:25 +02:00
helpers Drop Organization from specs 2024-06-07 17:42:08 +02:00
mailers Autocorrect new rubocop offenses 2025-08-12 16:44:20 +02:00
models Avoid crash validating event type with blank length 2026-05-14 09:18:39 +05:30
pdfs Resolve warning about test using not_to raise_error 2021-07-05 19:39:52 +02:00
routing Add frozen_string_literal magic comment 2018-05-09 06:54:26 -07:00
serializers Merge pull request #3090 from AndrewKvalheim/api-time-zone 2023-04-19 13:36:12 +02:00
support Autocorrect new rubocop offenses 2025-08-12 16:44:20 +02:00
spec_helper.rb Replace flash helper with "within" 2025-08-06 13:11:48 +02:00