Fixes #3307 - Zendesk migration of textareas fails

This commit is contained in:
Marcel Herrguth 2020-11-30 13:18:04 +01:00 committed by Thorsten Eckel
parent e2c4e6316d
commit eaa1f1f92b
2 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ module Import
private private
def data_type(_attribute) def data_type(_attribute)
'input' 'textarea'
end end
end end
end end

View file

@ -4,7 +4,7 @@ require 'lib/import/zendesk/object_attribute/base_examples'
RSpec.describe Import::Zendesk::ObjectAttribute::Textarea do RSpec.describe Import::Zendesk::ObjectAttribute::Textarea do
it_behaves_like Import::Zendesk::ObjectAttribute::Base it_behaves_like Import::Zendesk::ObjectAttribute::Base
it 'imports input object attribute from textarea object field' do it 'imports textarea object attribute from textarea object field' do
attribute = double( attribute = double(
title: 'Example attribute', title: 'Example attribute',
@ -22,7 +22,7 @@ RSpec.describe Import::Zendesk::ObjectAttribute::Textarea do
object: 'Ticket', object: 'Ticket',
name: 'example_field', name: 'example_field',
display: 'Example attribute', display: 'Example attribute',
data_type: 'input', data_type: 'textarea',
data_option: { data_option: {
null: false, null: false,
note: 'Example attribute description', note: 'Example attribute description',