move_spec.rb 752 B

123456789101112131415161718192021222324252627
  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::Move do
  5. it_behaves_like 'Import::OTRS::History'
  6. it 'imports an OTRS Move history entry' do
  7. zammad_structure = {
  8. id: '238',
  9. o_id: '39',
  10. history_type: 'updated',
  11. history_object: 'Ticket',
  12. history_attribute: 'group',
  13. value_from: 'Source',
  14. value_to: 'Target',
  15. id_from: '5',
  16. id_to: '2',
  17. created_at: '2014-05-12 13:42:41',
  18. created_by_id: '1'
  19. }
  20. history_from_json('move/default', zammad_structure)
  21. end
  22. end