summaryrefslogtreecommitdiff
path: root/spec/workers/new_release_worker_spec.rb
blob: 9d8c5bbf9194c8f99e0180c74e11dd66ca02d139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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