debian-mirror-gitlab/spec/workers/new_release_worker_spec.rb
2019-12-21 20:55:43 +05:30

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