diff options
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/environments/auto_stop_cron_worker_spec.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/workers/environments/auto_stop_cron_worker_spec.rb b/spec/workers/environments/auto_stop_cron_worker_spec.rb new file mode 100644 index 00000000000..6773637d4a7 --- /dev/null +++ b/spec/workers/environments/auto_stop_cron_worker_spec.rb @@ -0,0 +1,17 @@ +# 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 |