17 lines
471 B
Ruby
17 lines
471 B
Ruby
# frozen_string_literal: true
|
|
|
|
# TODO: Worker can be removed in 13.2:
|
|
# https://gitlab.com/gitlab-org/gitlab/-/issues/218231
|
|
require 'spec_helper'
|
|
|
|
RSpec.describe NewReleaseWorker do
|
|
let(:release) { create(:release) }
|
|
|
|
it 'sends a new release notification' do
|
|
expect_next_instance_of(NotificationService) do |instance|
|
|
expect(instance).to receive(:send_new_release_notifications).with(release)
|
|
end
|
|
|
|
described_class.new.perform(release.id)
|
|
end
|
|
end
|