2019-10-17 14:08:05 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe NewReleaseWorker do
|
|
|
|
let(:release) { create(:release) }
|
|
|
|
|
|
|
|
it 'sends a new release notification' do
|
2020-01-17 16:08:29 -05:00
|
|
|
expect_next_instance_of(NotificationService) do |instance|
|
|
|
|
expect(instance).to receive(:send_new_release_notifications).with(release)
|
|
|
|
end
|
2019-10-17 14:08:05 -04:00
|
|
|
|
|
|
|
described_class.new.perform(release.id)
|
|
|
|
end
|
|
|
|
end
|