Ensure datetime/date are serialized to correct format (#33086)
This commit is contained in:
parent
a8edc82471
commit
5cf37248cc
28 changed files with 515 additions and 5 deletions
|
@ -14,6 +14,8 @@ RSpec.describe REST::Admin::CohortSerializer do
|
|||
'data' => be_a(Array),
|
||||
'period' => /2024-01-01/
|
||||
)
|
||||
expect { DateTime.rfc3339(subject['period']) }.to_not raise_error
|
||||
subject['data'].each { |datum| expect { DateTime.rfc3339(datum['date']) }.to_not raise_error }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue