new_ticket_spec.rb 589 B

12345678910111213141516171819202122
  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::NewTicket do
  5. it_behaves_like 'Import::OTRS::History'
  6. it 'imports an OTRS NewTicket history entry' do
  7. zammad_structure = {
  8. id: '11291',
  9. o_id: '730',
  10. history_type: 'created',
  11. history_object: 'Ticket',
  12. created_at: '2014-11-21 00:17:41',
  13. created_by_id: '3'
  14. }
  15. history_from_json('new_ticket/default', zammad_structure)
  16. end
  17. end