blob: 14a74022a1ff7b6f805d31f6dfb4135768d01106 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Environments::AutoStopCronWorker, feature_category: :continuous_delivery do
subject { worker.perform }
let(:worker) { described_class.new }
it 'executes Environments::AutoStopService' do
expect_next_instance_of(Environments::AutoStopService) do |service|
expect(service).to receive(:execute)
end
subject
end
it 'executes Environments::AutoRecoverService' do
expect_next_instance_of(Environments::AutoRecoverService) do |service|
expect(service).to receive(:execute)
end
subject
end
end
|