article_spec.rb 640 B

12345678910111213141516171819202122
  1. require 'rails_helper'
  2. require 'lib/import/otrs/history_examples'
  3. RSpec.describe Import::OTRS::History::Article do
  4. it_behaves_like 'Import::OTRS::History'
  5. it 'imports an OTRS AddNote history entry' do
  6. zammad_structure = {
  7. id: '11307',
  8. o_id: '3973',
  9. history_type: 'created',
  10. history_object: 'Ticket::Article',
  11. related_o_id: '730',
  12. related_history_object: 'Ticket',
  13. created_at: '2014-11-21 00:21:08',
  14. created_by_id: '3'
  15. }
  16. history_from_json('article/default', zammad_structure)
  17. end
  18. end