debian-mirror-gitlab/spec/services/packages/debian/generate_distribution_service_spec.rb
2021-09-04 02:52:04 +05:30

25 lines
727 B
Ruby

# 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