From b94bcfd0f54bbc7a657df08d590760807feba179 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 6 Oct 2023 17:19:13 -0300 Subject: [PATCH] fix: especificar el tipo claramente ese atributo no sirve para nada --- test/models/metadata_array_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/models/metadata_array_test.rb b/test/models/metadata_array_test.rb index bda36a57..93197db3 100644 --- a/test/models/metadata_array_test.rb +++ b/test/models/metadata_array_test.rb @@ -27,7 +27,7 @@ class MetadataArrayTest < ActiveSupport::TestCase test 'no puede estar vacĂ­a si es obligatoria' do @layout = build(:layout, site: @site, metadata: { @name => { 'default' => { 'required' => true } } }) - @metadata = MetadataArray.new(site: @site, document: @document, name: @name, type: 'string', layout: @layout, + @metadata = MetadataArray.new(site: @site, document: @document, name: @name, type: 'array', layout: @layout, required: true) assert @metadata.required