app_version_restart_job_spec.rb 263 B

1234567891011
  1. require 'rails_helper'
  2. RSpec.describe AppVersionRestartJob, type: :job do
  3. let(:cmd) { '/path/to/restart_script.sh' }
  4. it 'executes app version restart job' do
  5. expect(::Kernel).to receive(:system).with(cmd)
  6. described_class.perform_now(cmd)
  7. end
  8. end