From 458b501f7a6f4b8fdffcf7cf159602204922f492 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 6 Oct 2023 11:46:06 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20testear=20sanitizaci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/models/metadata_array_test.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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