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: 6d179c791a37a1e73e2ef6a4b89968cef66cfcba (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, feature_category: :package_registry 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