history_spec.rb 460 B

12345678910111213141516
  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 do
  5. let(:start_import_test) { described_class.new(object_structure) }
  6. let(:object_structure) { load_history_json('article/default') }
  7. it 'requires an implementation of init_callback' do
  8. expect do
  9. start_import_test
  10. end.to raise_error(RuntimeError)
  11. end
  12. end