gitlab-org--gitlab-foss/spec/workers/new_release_worker_spec.rb

13 lines
325 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
describe NewReleaseWorker do
let(:release) { create(:release) }
it 'sends a new release notification' do
expect_any_instance_of(NotificationService).to receive(:send_new_release_notifications).with(release)
described_class.new.perform(release.id)
end
end