Welcome to mirror list, hosted at ThFree Co, Russian Federation.

generate_distribution_service_spec.rb « debian « packages « services « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a162e492e7e8dcd290ae921e58333436aaf0c852 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Packages::Debian::GenerateDistributionService do
  describe '#execute' do
    subject { 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

        context 'with Debian components and architectures' do
          it_behaves_like 'Generate Debian Distribution and component files'
        end

        context 'without components and architectures' do
          it_behaves_like 'Generate minimal Debian Distribution'
        end
      end
    end
  end
end