move_spec.rb 675 B

12345678910111213141516171819202122232425
  1. require 'rails_helper'
  2. require 'lib/import/otrs/history_examples'
  3. RSpec.describe Import::OTRS::History::Move do
  4. it_behaves_like 'Import::OTRS::History'
  5. it 'imports an OTRS Move history entry' do
  6. zammad_structure = {
  7. id: '238',
  8. o_id: '39',
  9. history_type: 'updated',
  10. history_object: 'Ticket',
  11. history_attribute: 'group',
  12. value_from: 'Source',
  13. value_to: 'Target',
  14. id_from: '5',
  15. id_to: '2',
  16. created_at: '2014-05-12 13:42:41',
  17. created_by_id: '1'
  18. }
  19. history_from_json('move/default', zammad_structure)
  20. end
  21. end