2020-02-14 00:09:07 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 15:08:50 +00:00
|
|
|
RSpec.describe Environments::AutoStopCronWorker do
|
2020-02-14 00:09:07 +00:00
|
|
|
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
|
|
|
|
end
|