From eaa1f1f92b4fc9a9421a0c0a813bf01dafa9e187 Mon Sep 17 00:00:00 2001 From: Marcel Herrguth Date: Mon, 30 Nov 2020 13:18:04 +0100 Subject: [PATCH] Fixes #3307 - Zendesk migration of textareas fails --- lib/import/zendesk/object_attribute/textarea.rb | 2 +- spec/lib/import/zendesk/object_attribute/textarea_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/import/zendesk/object_attribute/textarea.rb b/lib/import/zendesk/object_attribute/textarea.rb index e22ac0f12..ed7e8bf96 100644 --- a/lib/import/zendesk/object_attribute/textarea.rb +++ b/lib/import/zendesk/object_attribute/textarea.rb @@ -18,7 +18,7 @@ module Import private def data_type(_attribute) - 'input' + 'textarea' end end end diff --git a/spec/lib/import/zendesk/object_attribute/textarea_spec.rb b/spec/lib/import/zendesk/object_attribute/textarea_spec.rb index f4ed38e38..2cbaa668a 100644 --- a/spec/lib/import/zendesk/object_attribute/textarea_spec.rb +++ b/spec/lib/import/zendesk/object_attribute/textarea_spec.rb @@ -4,7 +4,7 @@ require 'lib/import/zendesk/object_attribute/base_examples' RSpec.describe Import::Zendesk::ObjectAttribute::Textarea do 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( title: 'Example attribute', @@ -22,7 +22,7 @@ RSpec.describe Import::Zendesk::ObjectAttribute::Textarea do object: 'Ticket', name: 'example_field', display: 'Example attribute', - data_type: 'input', + data_type: 'textarea', data_option: { null: false, note: 'Example attribute description',