debian-mirror-gitlab/spec/workers/environments/auto_stop_cron_worker_spec.rb
2020-08-09 17:44:08 +05:30

18 lines
370 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.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