2016-11-25 16:10:37 +00:00
|
|
|
require 'rails_helper'
|
2017-03-27 09:25:45 +00:00
|
|
|
require 'lib/import/otrs/history_examples'
|
2016-11-25 16:10:37 +00:00
|
|
|
|
|
|
|
RSpec.describe Import::OTRS::History::Move do
|
|
|
|
it_behaves_like 'Import::OTRS::History'
|
|
|
|
|
|
|
|
it 'imports an OTRS Move history entry' do
|
|
|
|
|
|
|
|
zammad_structure = {
|
|
|
|
id: '238',
|
|
|
|
o_id: '39',
|
|
|
|
history_type: 'updated',
|
|
|
|
history_object: 'Ticket',
|
|
|
|
history_attribute: 'group',
|
|
|
|
value_from: 'Source',
|
|
|
|
value_to: 'Target',
|
|
|
|
id_from: '5',
|
|
|
|
id_to: '2',
|
|
|
|
created_at: '2014-05-12 13:42:41',
|
|
|
|
created_by_id: '1'
|
|
|
|
}
|
|
|
|
|
|
|
|
history_from_json('move/default', zammad_structure)
|
|
|
|
end
|
|
|
|
end
|