mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-24 12:36:22 +00:00
fix: testear sanitización
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
8a668e6254
commit
458b501f7a
1 changed files with 13 additions and 0 deletions
|
@ -97,4 +97,17 @@ class MetadataArrayTest < ActiveSupport::TestCase
|
||||||
assert_not_equal value, @metadata.value
|
assert_not_equal value, @metadata.value
|
||||||
assert_equal [content], @metadata.value
|
assert_equal [content], @metadata.value
|
||||||
end
|
end
|
||||||
|
|
||||||
|
test 'los valores vacíos son eliminados' do
|
||||||
|
@metadata.value = [
|
||||||
|
nil,
|
||||||
|
'',
|
||||||
|
' '
|
||||||
|
]
|
||||||
|
|
||||||
|
@metadata.save
|
||||||
|
|
||||||
|
assert @metadata.value.empty?
|
||||||
|
assert @metadata.empty?
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue