debian-mirror-gitlab/spec/workers/environments/auto_stop_cron_worker_spec.rb

18 lines
370 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe Environments::AutoStopCronWorker do
2020-03-13 15:44:24 +05:30
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