debian-mirror-gitlab/spec/workers/new_release_worker_spec.rb
2020-03-09 13:42:32 +05:30

15 lines
371 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
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