5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 09:36:21 +00:00

fix: testear sanitización
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2023-10-06 11:46:06 -03:00
parent 8a668e6254
commit 458b501f7a
No known key found for this signature in database

View file

@ -97,4 +97,17 @@ class MetadataArrayTest < ActiveSupport::TestCase
assert_not_equal value, @metadata.value
assert_equal [content], @metadata.value
end
test 'los valores vacíos son eliminados' do
@metadata.value = [
nil,
'',
' '
]
@metadata.save
assert @metadata.value.empty?
assert @metadata.empty?
end
end