# frozen_string_literal: true

require 'spec_helper'

describe Environments::AutoStopCronWorker 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
end
