state_update_spec.rb 691 B

12345678910111213141516171819202122232425
  1. require 'rails_helper'
  2. require 'lib/import/otrs/history_examples'
  3. RSpec.describe Import::OTRS::History::StateUpdate do
  4. it_behaves_like 'Import::OTRS::History'
  5. it 'imports an OTRS StateUpdate history entry' do
  6. zammad_structure = {
  7. id: '11305',
  8. o_id: '730',
  9. history_type: 'updated',
  10. history_object: 'Ticket',
  11. history_attribute: 'state',
  12. value_from: 'new',
  13. id_from: 1,
  14. value_to: 'open',
  15. id_to: 2,
  16. created_at: '2014-11-21 00:21:08',
  17. created_by_id: '3'
  18. }
  19. history_from_json('state_update/default', zammad_structure)
  20. end
  21. end