Fixes #3307 - Zendesk migration of textareas fails
This commit is contained in:
parent
e2c4e6316d
commit
eaa1f1f92b
2 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ module Import
|
||||||
private
|
private
|
||||||
|
|
||||||
def data_type(_attribute)
|
def data_type(_attribute)
|
||||||
'input'
|
'textarea'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue