article_spec.rb 717 B

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