trabajo-afectivo/spec/lib/import/otrs/history/article_spec.rb

25 lines
717 B
Ruby
Raw Normal View History

2022-01-01 13:38:12 +00:00
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
require 'rails_helper'
require 'lib/import/otrs/history_examples'
RSpec.describe Import::OTRS::History::Article do
it_behaves_like 'Import::OTRS::History'
it 'imports an OTRS AddNote history entry' do
zammad_structure = {
id: '11307',
o_id: '3973',
history_type: 'created',
history_object: 'Ticket::Article',
related_o_id: '730',
related_history_object: 'Ticket',
created_at: '2014-11-21 00:21:08',
created_by_id: '3'
}
history_from_json('article/default', zammad_structure)
end
end