diff --git a/test/models/metadata_array_test.rb b/test/models/metadata_array_test.rb index 046aaeca..bda36a57 100644 --- a/test/models/metadata_array_test.rb +++ b/test/models/metadata_array_test.rb @@ -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