summaryrefslogtreecommitdiff
path: root/spec/services/packages/debian/generate_distribution_service_spec.rb
blob: 53805d03655e93cfd79b6f89d9038869fd032206 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Packages::Debian::GenerateDistributionService do
  describe '#execute' do
    subject { described_class.new(distribution).execute }

    let(:subject2) { described_class.new(distribution).execute }
    let(:subject3) { described_class.new(distribution).execute }

    include_context 'with published Debian package'

    [:project, :group].each do |container_type|
      context "for #{container_type}" do
        include_context 'with Debian distribution', container_type

        it_behaves_like 'Generate Debian Distribution and component files'
      end
    end
  end
end