new_ticket_spec.rb 512 B

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