app_version_restart_job_spec.rb 338 B

12345678910111213
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. RSpec.describe AppVersionRestartJob, type: :job do
  4. let(:cmd) { '/path/to/restart_script.sh' }
  5. it 'executes app version restart job' do
  6. expect(Kernel).to receive(:system).with(cmd)
  7. described_class.perform_now(cmd)
  8. end
  9. end